[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: why rsync wants to delete destination files



On Sat, 07 Aug 2010, T o n g wrote:
> I.e., "--delete-before" is the default action. It only affect the files 
> to be copied over. Nothing else.

rsync --delete a b c d 192.168.1.99:/tmp/

could remove a b c or d from /tmp in 192.168.1.99, if they don't exist
in the source location.

If a, b, c or d are directories, it will act on all files and
subdirectories inside them in 192.168.1.99:/tmp as well.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: