On 02/08/2019 21.26, Carlos E. R. wrote:
On 02/08/2019 21.14, Dave Howorth wrote:
On Fri, 2 Aug 2019 19:11:42 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
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
We keep telling you that the specific include must precede the more general exclude. Regardless of the trailing slashes or anything else, you MUST do this in all trials! I agree with Andrei, why two *?
Must have been a typo or paste error. I'll try again to make sure.
Well, I'm sure now, it fails: rsync $OPTIONS --password-file /root/cripta/keys/rsync.secrets \ --include=/data/vmware/ --include=/data/storage_*/ \ --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/$DESTINO I posted more details on another post. It does create the directory "/mnt/BookTelcontar/001/data/vmware", as it should, but it is empty. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)