Re: Question regarding --go-into with --prune
Denis Corbin <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 27/06/2020 15:50, Nils Privat wrote: > Hello, Hello, > > i have a question regarding the interaction between two parameters > (--go-into and --prune): My folder structure is like this: > /pool/movie /pool/series /pool/misc ... > > Each of these second level folders (movie, series, misc, ...) > contains a big amount of sub-folders too. > > To only save “movie“ i am using dar with --fs-root „/pool“ and > --go-into “movie“ which works fine. Because the folder „movie“ is > pretty big > i want for example to only include all dirs beginning with “A*“. > Since --go-into dont support wildcard i thought i can use --prune > “[B-Zb-z]*“ to exclude all other folders (inside of “movie“). Do you mean this? --fs-root "/pool" --prune "movie/[B-Zb-z]*" > Sadly its not working as excepted and also dirs beginning with A* > will be saved by dar. I don't follow you, isn't it what you expected: 'saving all dirs beginning with "A*" '? > If i am not using --go-into and directly use --fs-root > “/pool/movie“ with --prune “[B-Zb-z]*“ it works like excepted. So > am i doing something wrong or is dar confused with --go-into and > --prune. note: that you may find regex more adapted to your need (see -ar option) independently from regex, you might consider the ordered mask (-am option) which would give you more intuitive filters: - --fs-root /pool -am --go-into movie --prune "movie/[B-Zb-z]*" this whill include only /pool/movie directory except sub-entries of /pool/movie beginning by A or a (assuming all entries starts by a letter ) one step further, the -an option makes the following filters on command line case insensitive filters (see also -acase option): - --fs-root /pool -am --go-into movie -an --prune "movie/[b-z]*" > > Thanks > > Regards, Denis -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOzEprx3d76WjfYGPCDGwvQPYsYIFAl73qA0ACgkQCDGwvQPY sYIg+g/7B7+PjC4iLPl7W/BErjFXIJlTnqEG/n2hMo9A7Ud9EKq979+rd3l5bYXD wNKbrwhgdA8YG8rG3r9Ar8sxkBd3V0uR8RX1BxMek4PRHgPMdaIZKbv6/3TOMF/x SZZ3jXtsVy15+2wyEUe9zkN/7LXwtjDEUU3OnlVHgJhdoECRAdz+JBEvicO30tWy ffkUSMYMqo+Nruq0Zs1Kdlne4xBxE962KW6sxOPG8wFv8CWLT8z98wjHffk/Rly9 jI1v7j5toDwCwVUy+IjTQ1WUc7z4S17L/uEun1qQupcRbHefKWQ9/35ByLcaKbJ/ PdpkCRAsI7OPy7AZ9y4miJ3CLRah9GMQw3B58G3G3CIRmvK3QUQGMX+29iMBRPTu rIelVuKJPAKB4byncVw8+VnEd+5dI8T/1G45yrtqTtq1Pp9iL7srwBf2fLmzU4v7 Byh9TQFN37w+xFMrxKRMIRl75NXLPCEXAYl9dCuDpMjMbiFCBomnKElJYblltyV3 XCPnNGXqdFynH7yG2KNYgqIs167DJW8D9sOU6a76ptcrQAtQ4fe/+he/ySuvP3MT qImQ8wtCDiha3GIzavg37dWFoEToeZT6iNx6E9x4tm3NtZeEQeQftBnrf7luObzW uZV9adGJMCrO1f+q9AMSKMEoTtbTYSSo32P8EBnC3WMyr+/ijJk= =s1DJ -----END PGP SIGNATURE----- _______________________________________________ Dar-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dar-support