[PLUG] Copying to new host, excluding a directory tree
Tomas Kuchta
tomas.kuchta.lists at gmail.com
Wed Jul 31 20:00:51 UTC 2019
You need to quote the remote host:'*' like this to prevent your local shell
expanding it locally instead of remotely.
Hope this helps,
Tomas
On Wed, Jul 31, 2019, 14:01 Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Wed, 17 Jul 2019, tomas.kuchta.lists at gmail.com wrote:
>
> > you can use --exclude dirOrFileName multiple times - it will form a list
>
> From the target machine I tried to rsync all of my home directory from
> salmo, except for the data/ subdirectory but my syntax is wrong. On the
> source host data/ is a subdirectory under ~/. On the target host it's a
> different partition, /data.
>
> rsync -av --exclude=data/ salmo:* .
>
> skips all ~/ and copies over no files.
>
> What's the correct syntax for this?
>
> Regards,
>
> Rich
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list