rsync --delete (but not all files) question
lists at givemefish.com
Tue Jun 10 10:03:23 GMT 2008
getting started with rsync. One of the best utilities I've used! My
I am syncing from my local web development directory (/var/www/mysite) to
another drive shared by our dev team. The copy I am syncing to is a local
subversion repository, and thus contains .svn directories.
So I want to sync from the dev directory (which doesn't have .svn
directories) to one that does. However, I want to use the --delete option
for all files and directories *other* than these .svn directories. I want
to keep the .svn directories as is, but otherwise sync the two directories
exactly, erasing files that no longer appear in the source directory.
I am also using an --exclude-from file to remove emacs (~) backup files and
I have something like:
rsync -va --delete --exclude-from=$EXCLUDES_FILE --stats /var/www/mysite
I'm not sure how to use --delete and still keep certain files / dirs (those
Any help would be appreciate.
View this message in context: http://www.nabble.com/rsync---delete-%28but-not-all-files%29-question-tp17751838p17751838.html
Sent from the Samba - rsync mailing list archive at Nabble.com.
More information about the rsync