[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Newbie question: Restore target already exists
From: |
Ben Escoto |
Subject: |
Re: [rdiff-backup-users] Newbie question: Restore target already exists |
Date: |
Mon, 03 Mar 2003 12:08:43 -0800 |
>>>>> "SB" == Sherrard Burton <address@hidden>
>>>>> wrote the following on 03 Mar 2003 10:59:59 -0500
SB> Is there a way to force a restore into a directory, or down a
SB> set of directories that already exist?
Yes, you can specify --force, but then anything in that directory that
isn't present in the restore will be deleted. It sounds to me like
you want some kind of --no-delete option which prevents this.
Unfortunately there is no such option. However, you can run:
SB> rdiff-backup -r 1D --include '/tmp/restore/u/jdoe/Maildir/new/'
SB> --exclude '**' /u-backup/ /tmp/restore/
Then:
cp /tmp/restore/u/jdoe/Maildir/new/* /u/jdoe/Maildir/new/
then something like:
SB> rdiff-backup -r 2D --include '/tmp/restore/u/jdoe/Maildir/new/'
SB> --exclude '**' /u-backup/ /tmp/restore/
but with force, and then:
cp /tmp/restore/u/jdoe/Maildir/new/* /u/jdoe/Maildir/new/
again, etc.
BTW, your restore options seem strange, maybe just type:
rdiff-backup -r 2D /u-backup/u/jdoe/Maildir/new /tmp/restore
or something like that.
--
Ben Escoto
pgpBCqNdnNgEJ.pgp
Description: PGP signature