Rsync exclude file not working
I' attempting to use rsync to keep files in sync between two directories locally. The command I'm using in a script file is as follows:
rsync -rptgoiuqc --exclude '/home/louis/Documents/drupal.conf' /home/louis/Documents/ /home/louis/SynologyDrive/
rsync -rptgoiuqc /home/louis/SynologyDrive/ /home/louis/Documents/
When I run the above command I get the following message:
rsync: chgrp "/home/louis/Documents/drupal.conf" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
Since I'm trying to exclude the file 'drupal.conf' in the first command in the script shouldn't just ignore the file and message not appear.
Thanks
~
|