On Thu, 1 Aug 2019 23:59:38 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
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.
Yes, the man page says that the first matching rule is acted upon, so the /data excludes everything below and your include rule is never considered. If you put the include rule first, I think it may work. I don't remember if you need to quote the patterns, BTW.
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.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org