Mailinglist Archive: opensuse (2806 mails)

< Previous Next >
Re: [opensuse] Rsync question
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 28 Jul 2008 14:38:12 +0200 (CEST)
  • Message-id: <alpine.LSU.1.00.0807281429440.19230@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



The Monday 2008-07-28 at 14:09 +0200, J Beris wrote:

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?

rsync $OPTIONS --link-dest=$YESTERDAY $WHAT $TODAY

But it would probably be easier to use any of the several existing scripts that handle that situation nicely.

rdiff-backup the previous backups are stored as rdifs.
I think it will go very slow over USB.

rsnapshot rsync style.
http://www.dirvish.org/
pdumpfs (http://0xcc.net/pdumpfs)

- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIjb23tTMYHG2NR9URAkGiAKCY03C/mSPYMnsosL/MRoT4QZHzFwCcCmOZ
VtZkhKjac6JoagFR/bkuzSw=
=Ak4S
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References