onassar
2009-Dec-25 21:18 UTC
deletes on recipient server, but don't delete natively created files
rsync --archive --delete --quiet --progress --stats --compress --rsh=/usr/bin/ssh --exclude ".svn" --exclude ".DS_Store" --exclude "." --exclude ".." --exclude "thumbs.db" /Users/test/Desktop/Sites/ 10.211.55.6:/var/www I'm running that on osx talking to my ubuntu box. if i delete a file out of Sites, it deletes it out of www on the remote, as expected. My server, once in a while, creates files though, like error logs, receives file uploads, etc. Is there a flag to specify that will only delete remote files on an rsync trigger if the files were created by the ssh-ing user? I looked through the whole man, and while I saw the filter rules, I'm not sure if that could be used. Any thoughts would be very much appreciated. Thanks. -- View this message in context: http://old.nabble.com/deletes-on-recipient-server%2C-but-don%27t-delete-natively-created-files-tp26897631p26897631.html Sent from the Samba - rsync mailing list archive at Nabble.com.
Maybe Matching Threads
- DO NOT REPLY [Bug 3594] New: --delete doesn't delete destination files that don't exist at the source
- Windows 10 in Samba 3 domain: netlogon share access denied
- Cannot change directory permissions
- [Bug 8973] New: --delete or similar (--delete-after / --delete-before) does not work if used after --rsh
- unknown tag type 64 / recycle: stat for *:AFP_AfpInfo returned No such file or directory