Does rsync delete unmatched files by default?

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Mon Dec 20 23:48:39 UTC 2010


  I think the answer is "no", as long as I don't specify --delete, but I
want to confirm.  I revently switched over to using rsybc to back up my
main machine to an external USB drive.  It took a while <G> because it
was the first pass so it amounted to a straight copy.

  My question is about future backups.  If I delete a file from the
source, will it be deleted from the destination during my next sync?
The script I use is below...

#!/bin/bash
rm /root/rsync_log.txt
cd /
rsync --archive --group --itemize-changes --links --owner --perms \
      --progress --recursive --stats --times --verbose \
      --files-from=root/include_rsync.txt \
      --exclude-from=root/exclude_rsync.txt \
      --log-file=/root/rsync_log.txt / /mnt/extd/image_i3/

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list