[PLUG] Copying to new host, excluding a directory tree
Ben Koenig
techkoenig at gmail.com
Wed Jul 17 23:01:43 UTC 2019
--exclude ~/data/
To specify a subdir just specify the path to the subdir.
On Wed, Jul 17, 2019 at 3:52 PM Rich Shepard <rshepard at appl-ecosys.com>
wrote:
> Copying directories from one desktop to another using rsync. The rsync man
> page shows how to specify directories and individual files, but I've not
> seen how to exclude a subdirectory.
>
> On the source host is a directory ~/data/. On the target host /home is on
> /dev/sda2 while data is a separate partition (/dev/sda3).
>
> What syntax allows me to copy all files but those in the source ~/data/
> subdirectory to ~/ on the target host?
>
> TIA,
>
> Rich
>
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list