On 02/08/2019 16.04, Ken Schneider - openSUSE wrote:
On 8/2/19 7:23 AM, Carlos E. R. wrote:
...
This is what the process looks like now:
cer@Telcontar:~> ps afx | grep rsync 30526 pts/7 S+ 8:23 | | \_ rsync --archive --acls --xattrs --hard-links --sparse --stats --human-readable --password-file /root/cripta/keys/rsync.secrets --exclude=/lost+found --exclude=/dev --exclude=/sys --exclude=/proc --exclude=/run --exclude=/mnt --exclude=/other --exclude=/media --exclude=/var/lib/samba/lock/ --exclude=/var/run/ --include=/data/storage_** /data/vmware /data/cripta /data/storage_a /data/storage_b /data/storage_b02 /data/storage_c /data/storage_d /data/storage_e /data/storage_new_d /data/storage_old_b /data/storage_old_c root@Isengard::MyBook_Telcontar/001/data 32309 pts/50 S+ 0:00 | \_ grep --color=auto rsync
You can see that "--include=/data/storage_**" was not expanded. The command line I used is:
rsync $OPTIONS --password-file /root/cripta/keys/rsync.secrets \ --exclude=/lost+found --exclude=/dev --exclude=/sys --exclude=/proc --exclude=/run \ --exclude=/mnt --exclude=/other --exclude=/media --exclude=/var/lib/samba/lock/ --exclude=/var/run/ \ --include=/data/storage_** \
Change this to : --include=/data/storage_*/ ...
I think you need the trailing '/' in order to traverse the subdirs.
It is not needed on the "--exclude", why would it be on the "--include"? The trailing slash on the source does have a meaning: the last directory is created on destination or not. But I can try. Anyway, I'll try. [...] Did not work. sync $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_**/ --include=/data/vmware/ \ / root@Isengard::MyBook_Telcontar/$DESTINO -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)