[PLUG] Copying to new host, excluding a directory tree
Rich Shepard
rshepard at appl-ecosys.com
Wed Jul 31 21:15:33 UTC 2019
On Wed, 31 Jul 2019, David Bridges wrote:
> In an earlier reply I mentioned using a file to exclude things that is
> referenced on the rsync command line. I know that things can be excluded
> as an argument on the command line but I've been tripped up doing it like
> that in the past. I would suggest trying the following using your correct
> information of course.
David,
I read that. With only a single subdirectory I tried to do it on the command
line. However ...
> The following should do what you want as it works prefectly for me with my
> specific directories and excludes.
>
> rsync -arvP -e ssh --exclude-from='/home/rshepard/excludes.txt'
> /home/rshepard/ rshepard at salmo:/home/rshepard/
> Hope this helps
... yes, this does help.
Thanks,
Rich
More information about the PLUG
mailing list