[opensuse] rsync advice
- From: Roger Oberholtzer <roger@xxxxxx>
- Date: Fri, 08 Jun 2012 09:56:28 +0200
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
- Follow-Ups:
- Re: [opensuse] rsync advice
- From: Brian K. White
- Re: [opensuse] rsync advice
- From: Per Jessen
- Re: [opensuse] rsync advice
- Prev by Date: Re: [opensuse] OpenSuSE 12.1 Evolution 3.2.1 lousy it was good in 2.04 under 10.0
- Next by Date: Re: [opensuse] 12.1 to 12.2 kmail import/export
- Previous by thread: [opensuse] OpenSuSE-12.1--Error during boot: ioremap failure?
- Next by thread: Re: [opensuse] rsync advice
- Index(es):
Relevant Pages
|