On Mon, Oct 28, 2024 at 10:36:33AM -0700, Graham Percival wrote:
On Mon, Oct 28, 2024 at 10:16:51AM -0700, Colin Percival wrote:On 10/28/24 09:09, void wrote: > In tcsh, I'm testing some systems with --dry-run and --exclude like this: > > % tarsnap --dry-run --no-default-config --exclude "*.{iso,img,tar,zst}" > -- print-stats --humanize-numbers -v -c /home/voidGlobbing is particularly full of pitfalls. Does it work if you specify --exclude '*.iso' --exclude '*.img' --exclude '*.tar' --exclude '*.zst' separately?To confirm, tarsnap -v -c --dry-run --exclude "*.{txt,pdf}" . does not work as one might expect. Instead, you need multiple options: tarsnap -v -c --dry-run --exclude "*.txt" --exclude "*.pdf" . I'll add a note to https://www.tarsnap.com/selecting-files.html
This might be of some interest: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207369 I can't test it now, but maybe the "=" (--exclude="thing1,thing2)" would work? I was able to get multiple excludes when the commands were run in a file, but not on the commandline. In both cases using /bin/sh --
