D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] rsync error.. tries to copy Trash folder

 

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

--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq