Prevent rsync from deleting destination files that match a given pattern

You can exclude files/directories with –exclude. This will prevent the somedir directory from being synced/deleted:

rsync -avrc --delete --exclude somedir source destination

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)