On 02/08/2019 00.18, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@telefonica.net> [08-01-19 18:01]:
I have:
OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable "
rsync $OPTIONS --password-file /root/cripta/keys/rsync.secrets \ --exclude=/lost+found --exclude=/dev --exclude=/sys --exclude=/proc --exclude=/run \ --exclude=/data --exclude=/mnt --exclude=/other --exclude=/media --exclude=/var/lib/samba/lock/ --exclude=/var/run/ \ --include=/data/storage_** \ / root@Isengard::MyBook_Telcontar/001
It is failing, /data/storage_** is not included.
What is the proper way in this tree:
/data/something/* /data/somethingelse/* /data/somethingmore/* /data/somethingevenmore/* /data/storage_a/* /data/storage_b/*
to copy /data/storage_a, /data/storage_b, and ignore all the rest, without explicitly listing all the rest? I thought that
--exclude=/data --include=/data/storage_**
would do it. The manual is very confusing to me.
perhaps, --exclude=/data --include-/data/storage_?
A minus (-) symbol? I'll try. [...] No. Telcontar:~ # time bckall2mybook Rsync server found rsync: --include-/data/storage_**: unknown option rsync error: syntax or usage error (code 1) at main.c(1593) [client=3.1.3] I'll try this: rsync $OPTIONS --password-file /root/cripta/keys/rsync.secrets \ --exclude=/lost+found --exclude=/dev --exclude=/sys --exclude=/proc --exclude=/run \ --exclude=/data --exclude=/mnt --exclude=/other --exclude=/media --exclude=/var/lib/samba/lock/ --exclude=/var/run/ \ --include=+/data/storage_** \ / root@Isengard::MyBook_Telcontar/$DESTINO I think it doesn't work, but will take a while till it exits and I know. I guess it doesn't because I see the network is not active. ie, not transmitting anything. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)