--move instaed of --delete
jw at pegasys.ws
Tue Nov 4 20:54:36 EST 2003
On Mon, Nov 03, 2003 at 12:34:41PM +0100, Maik Holtkamp wrote:
> I have set up daily backup using rsync to collect the data and
> afterwards I use afio to write the data to tape.
> I do:
> $RSYNC -avbu --backup-dir=$PART/$HOST/old -e ssh --exclude-from $EXCLUDE
> root@$HOST:/ $PART/$HOST > $LOG/$HOST-$DATE.log
> to sync files.
> Since the tape capacity is limited I exclued the /$PART/$HOST/old dirs,
> form the afio call. These are backuped separately on weekly basis.
> I would like to use --delete for the same reason. However, it should not
> actual delete the files but put them in the .../old directories, too.
> But I can not find out how to do so :-(.
> Any hint greatly appreciated. TIA.
Hint: _read_ the manpage.
"With this option, preexisting destination files are
renamed as each file is transferred or deleted."
> BTW: Smart questions link from http://rsync.samba.org/lists.html brings
> me to tuxedo start page.
> - bye maik
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync