On Wed, Feb 18, 2009 at 6:15 PM, Boris Epstein <borepstein@gmail.com> wrote:
On Wed, Feb 18, 2009 at 6:08 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I have a directory that I backup every night via rsync to a remote server a couple thousand miles away. (For about 2 years now.)
Its a dynamic directory with files created and deleted.
I just noticed that the main directory is 247GB, but the remote copy is 354GB.
I assume rsync can cause the extra files on the remote to be deleted?
I'm currently using: rsync -avh --delete-after --stats --links --partial-dir=<transfer_dir> --timeout=1800 <BACKUP_DIR> <remote_user>@<remote_server>/<remote_dir>
Any idea what I need to change?
FYI: My local dir is actually the destination of a rdiff-backup run, so it has tons of old revisions in it.
Thanks Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf
The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Greg,
I believe rsync is not designed to remove anything in the destination directory.
Have you considered using rsnapshot?
Works quite nicely for us.
Boris.
Boris, The --delete-after flag is supposed to delete files from the dest not present in the source. (or so I believe.) I don't remember really testing this flags use before, so maybe I don't understand what it actually does? Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org