Closed nxshock closed 1 year ago
Looks like I found solution in ZPAQ docs: -only
to include, -not
to exclude files.
Yes, you can :)
Those are arrays (vectors) so you can use more than one -not or -only
Warning: on Windows there are / and not \
zpaqfranz a z:\2 c:\dropbox\Dropbox -not c:/dropbox/Dropbox/mamma -not *.txt -not *.exe -not c:/dropbox/dropbox/clienti
On *nix beware of parameters and " Those are NOT the same thing
zpaqfranz a /tmp/u1.zpaq /root/script -not /root/script/*.sh
zpaqfranz a /tmp/u2.zpaq /root/script -not "*.sh"
On zpaqfranz 57+ you will see exactly the wildcard expansion
root@aserver:/tmp # zpaqfranz a /tmp/urgone2 /root/script -not /root/script/*.sh
zpaqfranz v57.3f-JIT-L, (15 Feb 2023)
franz:-not /root/script/1.sh
franz:-not /root/script/2.sh
franz:-not /root/script/backupfrancia.sh
franz:-not /root/script/bak_replicaremota.sh
franz:-not /root/script/bakemail.sh
franz:-not /root/script/checknas.sh
franz:-not /root/script/dumpa.sh
franz:-not /root/script/francia.sh
franz:-not /root/script/franciabackup.sh
franz:-not /root/script/incra.sh
franz:-not /root/script/len.sh
franz:-not /root/script/lento.sh
franz:-not /root/script/lento2022.sh
franz:-not /root/script/lento_temp.sh
franz:-not /root/script/nas.sh
franz:-not /root/script/newrambo.sh
franz:-not /root/script/nexenta.sh
franz:-not /root/script/partc.sh
franz:-not /root/script/prova.sh
franz:-not /root/script/s.sh
franz:-not /root/script/scriptino.sh
franz:-not /root/script/scrubba.sh
franz:-not /root/script/snappa.sh
franz:-not /root/script/vecchiolento.sh
franz:-not /root/script/veloce.sh
--------------------------------------------------------------------------------------
Is there any way to exclude some files from archiving? For example, do not include temporary directories like
/tmp
or/var/tmp
when archiving/
.