Backup data exclude list

NethServer Version: NS7.3
Module: Backup data

Hi,

I’m trying to exclude some file extensions from the backup. I added those lines to /etc/backup-data.d/custom.exclude :

*.mov
*.wav
*.MOV
*.WAV
*.MP4
*.mp4
*.aif
*.AIF
*.iso
*.ISO

That doesn’t work : the following error is reported :

Extract from log file /var/log/last-backup.log:

Reading globbing filelist /tmp/sjbJnFZyJC
Traceback (most recent call last):
 File "/usr/bin/duplicity", line 1540, in <module>
   with_tempdir(main)
 File "/usr/bin/duplicity", line 1534, in with_tempdir
   fn()
 File "/usr/bin/duplicity", line 1372, in main
   action = commandline.ProcessCommandLine(sys.argv[1:])
 File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 1154, in ProcessCommandLine
   set_selection()
 File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line 978, in set_selection
   sel.ParseArgs(select_opts, select_files)
 File "/usr/lib64/python2.7/site-packages/duplicity/selection.py", line 272, in ParseArgs
   for sf in self.filelist_globbing_get_sfs(filelists[filelists_index], 1, arg):
 File "/usr/lib64/python2.7/site-packages/duplicity/selection.py", line 371, in filelist_globbing_get_sfs
   yield self.glob_get_sf(line, include)
 File "/usr/lib64/python2.7/site-packages/duplicity/selection.py", line 436, in glob_get_sf
   sel_func = self.glob_get_normal_sf(glob_str, include)
 File "/usr/lib64/python2.7/site-packages/duplicity/selection.py", line 567, in glob_get_normal_sf
   raise FilePrefixError(glob_str)
FilePrefixError: *.wav

What am I doing wrong ?

Thanks

Matthieu

try with two wildcards **.mp4

From duplicity manual:
The new special pattern, **, expands to any string of characters whether or not it contains “/”

1 Like

Gosh. It works :expressionless:

Thanks