[opensuse] rsync advice



I use rsync in a cron script to maintain a remote copy of some things.
When I first set this up I did not have things deleted on the remote
copy. Being an archive, I felt a few extra files are better than missing
ones.

I would now like to delete the remote-only files in a controlled
fashion. So I have run this command to see what would be deleted:

rsync -nazv --delete --delete-after --rsh=ssh theDir backup:/vol1/theDir

My question is, would this rsync command only delete files on the
destination system? In my case, in backup:/vol1/theDir? I do not want
anything deleted in 'theDir'. I do not expect that there are any local
files that are not in the remote. But just in case.

In my dry run, I saw that there were many hundreds of files that could
be deleted. Perhaps I should just collect the names and see if they
exist locally. Which they should not... But would rsync ever delete
files in 'theDir'?

Yours sincerely,

Roger Oberholtzer

OPQ Systems / Ramböll RST

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
roger.oberholtzer@xxxxxxxxxx
________________________________________

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx



Relevant Pages

  • Re: remote copy file
    ... system on our server since it contains data. ... It would be nice if it would work with rsync. ... As I understand it, you need the embedded device to initiate the ransfer, not the remote PC, and you need authentication but without needing to specify a password. ...
    (alt.os.linux.suse)
  • Re: rsync -
    ... The name "rsync" seems to imply that it will make them identical. ... some changes on both machines, but to different files, then rsync is ... "Local to Remote, Delete Remote" \ ... echo "Running rsync for real..."; ...
    (Fedora)
  • Re: [opensuse] backups via rsync leaving old junk in the backup?
    ... 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? ... For backup purpuses, --numeric-ids is also useful, because it makes sure ... so it is redundant in your command line. ...
    (SuSE)
  • Re: How do I use rsyncd.conf labels
    ... The single colon version of rsync uses a remote shell (ssh, ... rsh, etc.) for network transport, and the double colon ...
    (comp.os.linux.misc)
  • Re: rsync using sudo.
    ... Both rsync ... users are in /etc/sudoers and permitted to run the command as root ... the local files get permission denied on root owned files ... still get a prompt for a password for the remote machine. ...
    (Fedora)