Mailinglist Archive: opensuse (2806 mails)

< Previous Next >
Re: [opensuse] Rsync question
  • From: Ken Schneider <suse-list3@xxxxxxxxxxxxx>
  • Date: Mon, 28 Jul 2008 08:18:01 -0400
  • Message-id: <488DB8F9.2000507@xxxxxxxxxxxxx>
J Beris pecked at the keyboard and wrote:
Hello list-members,

I have a question about Rsync. Like several people here, I use an
external USB disk to make daily backups of my critical data. For this, I
have written a shell script which mounts the disk as necessary and then
calls rsync to do the actual backup.

This works very well, except that if I delete a file in my home
directory, have rsync do its thing at night, then the next morning that
deleted file is gone from my backup too, so I can only go back one day.
This is nice for a disk crash, but not for restoring data that was
deleted 4 days ago, for instance. Can someone tell me if it is possible
to have rsync retain the data in the backup for say another 14 or 30
days before purging them? I have looked at the man page, but haven't
found an answer to my question there. Does someone have an idea, please?

I use the following command in my shell script to do the rsync backup:
$RSYNC -alvz --delete --exclude=Cache --exclude=.beagle --exclude=trash
--exclude=.thumbnails /home/<username> $MPOINT --log-file=/var/log/rsync

Thanks in advance,

Joop

The --delete means to delete files on the remote that are not on the local machine. That is why they are gone on the backup drive.

--
Ken Schneider
SuSe since Version 5.2, June 1998
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References