Backup data exclude list

NethServer Version: NS7.3
Module: Backup data


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


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>
 File "/usr/bin/duplicity", line 1534, in with_tempdir
 File "/usr/bin/duplicity", line 1372, in main
   action = commandline.ProcessCommandLine(sys.argv[1:])
 File "/usr/lib64/python2.7/site-packages/duplicity/", line 1154, in ProcessCommandLine
 File "/usr/lib64/python2.7/site-packages/duplicity/", line 978, in set_selection
   sel.ParseArgs(select_opts, select_files)
 File "/usr/lib64/python2.7/site-packages/duplicity/", 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/", line 371, in filelist_globbing_get_sfs
   yield self.glob_get_sf(line, include)
 File "/usr/lib64/python2.7/site-packages/duplicity/", line 436, in glob_get_sf
   sel_func = self.glob_get_normal_sf(glob_str, include)
 File "/usr/lib64/python2.7/site-packages/duplicity/", line 567, in glob_get_normal_sf
   raise FilePrefixError(glob_str)
FilePrefixError: *.wav

What am I doing wrong ?



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: