[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 05/11/17 13:19, Julian Hall wrote:
> Hi All,
>
> Doing a weekly backup of my NAS by rsync I keep getting an error when
> it tries to copy the Trash folder, which obviously I don't want it to
> copy anyway:
>
> rsync: opendir "/media/julian/DIANA/.Trash-1000" failed: Permission
> denied (13)
>
> I have tried excluding the specified folder as follows;
>
> sudo rsync -aAXv /media/julian/CASSIOPEIA /media/julian/ARTEMIS/
> --delete --exclude={/media/julian/CASSIOPEIA/.Trash-1000}
>
> However it seems to ignore the exclusion. It's not a huge problem as
> everything else copies properly, it's just an irritant.
>
> Any thoughts please?
>
> Kind regards,
>
> Julian
>
Why the curly braces {} and not simply double-quote and escape the
exclude .. I suspect if you try to echo this 'parameter' to the console
it will tell you why its not parsing it ...
MJE
Attachment:
signature.asc
Description: OpenPGP digital signature
-- The Mailing List for the Devon & Cornwall LUG https://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq