On 06/08/2019 05.57, Andrei Borzenkov wrote:
05.08.2019 23:26, Carlos E. R. пишет:
But "--include=/data/storage_**" did work. Why not "--include=/data/cripta/**"
For the same reason --include=/data/storage* --exclude=/data* did not work.
No, because you told me it would work if the --include goes before the --exclude and it is. I'm using the command line you told me to use.
or "--include /data/vmware**". And
Because rsync does not see "**", it is consumed by shell.
It isn't. I proved that. No, the reason is because I wrote: --include /data/vmware** instead of: --include=/data/vmware** Look, the "**" are NOT expanded - this is what the shell expands and what not: Telcontar:~ # ps afxu | grep rsync root 1257 24.6 0.1 71108 11680 pts/7 S+ 11:35 0:00 | | \_ rsync --archive --acls --xattrs --hard-links --sparse --stats --human-readable --password-file /root/cripta/keys/rsync.secrets --link-dest=root@Isengard::MyBook_Telcontar/001 --relative --include=/data/vmware/** --include=/data/storage_** --include=/data/cripta/** --include=/data/xtr** --include=/data/raid** --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/ / root@Isengard::MyBook_Telcontar/002
"--include=/data/raid**" did work.
You seriously do not see the difference between both lines?
It helps when somebody else tells one where to look for the obvious. That's why one posts things in internet, because we do not see the problem and need help. Yes, today I saw a difference. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)