* Patrick Shanahan <paka@opensuse.org> [08-01-19 23:02]:
* Carlos E. R. <robin.listas@telefonica.net> [08-01-19 18:32]:
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, the (-) is a typo, s/b --include=/data/storage_?
the "?" includes a single unknown character you could also write --include=/data/storage_?/* which should include /data/storage_a/ and /data/storage_b/ and ... -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org