lfops
lfops copied to clipboard
role:duplicty: Files in divided folder won't be backed up by duba
files located directly in a folder (which is divided in duba via /etc/duba/duba.json with the entry "divide": true,) are not backed up
Example:
The folder parentfolder1contains folders and files. The folders and files in folder1, folder2 etc. will be found in the backup, but not the files that are directly in the folder parentfolder1.
In the listed Example below, the file file1.tar.gz will be missed in the backup.
[hostname Rocky8 ~]$ ll /parentfolder1
total 30790
drwxrwsr-x. 6 user1 group1 66 May 19 12:17 folder1
drwxr-xr-x. 2 266012 1274 93 May 16 14:35 folder2
drwxr-xr-x. 6 user1 group1 112 Jul 20 2021 folder2
-rw-r--r--. 1 root root 314449920 May 16 14:34 file1.tar.gz
drwxr-xr-x. 3 root root 23 May 16 14:40 folder3
[hostname Rocky8 ~]$ cat /etc/duba/duba.json
{
"gpg_encrypt_local_key": "thekey",
"gpg_encrypt_master_key": "themasterkey",
"backup_sources": [
{
"divide": false,
"path": "/backup"
},
{
"divide": false,
"path": "/etc"
},
{
"divide": false,
"path": "/home"
},
{
"divide": true,
"excludes": [
"**/parentfolder1"
],
"path": "/folder3"
},
......omitted.......