Allow marking folders as omitted from backup

This commit is contained in:
Zuckerberg 2023-04-09 12:35:20 -06:00
parent 378cf47683
commit 42e2ebd294
2 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,10 @@ let
RandomizedDelaySec = "1h";
};
extraBackupArgs = [
''--exclude-if-present ".nobackup"''
];
pruneOpts = [
"--keep-daily 7" # one backup for each of the last n days
"--keep-weekly 5" # one backup for each of the last n weeks

View File

@ -25,9 +25,7 @@
printing = cups
printcap name = cups
# horrible files
veto files = /._*/.DS_Store/ /._*/._.DS_Store/
delete veto files = yes
hide files = /.nobackup/.DS_Store/._.DS_Store/
'';
shares = {
@ -81,7 +79,7 @@
backup.group."samba".paths = [
config.services.samba.shares.googlebot.path
config.services.samba.shares.cris.path
"${config.services.samba.shares.public.path}/Regularly_Backed_Up"
config.services.samba.shares.public.path
];
# Windows discovery of samba server