# Do a full backup after 1 month
MAX_FULLBKP_AGE=1M
- DUPL_PARAMS="$DUPL_PARAMS --full-if-older-than $MAX_FULLBKP_AGE "
+ DUPL_PARAMS="$DUPL_PARAMS --allow-source-mismatch --exclude-other-filesystems --full-if-older-than $MAX_FULLBKP_AGE "
# Backups older than 2months are deleted
MAX_AGE=2M
# Keep 2 full backups
dest = "backup/${varName k remote}/exclude";
text = v.excludeFile;
}
+ {
+ permissions = "0500";
+ dest = "backup/${varName k remote}";
+ isDir = true;
+ }
]) v.remotes) config.services.duplyBackup.profiles);
services.cron = {
map (remote: [
''
touch ${varDir}/${varName k remote}.log
- ${pkgs.duply}/bin/duply ${config.secrets.location}/backup/${varName k remote}/ ${action} --force >> ${varDir}/${varName k remote}.log
+ ${pkgs.duply}/bin/duply ${config.secrets.fullPaths."backup/${varName k remote}"}/ ${action} --force >> ${varDir}/${varName k remote}.log
[[ $? = 0 ]] || echo -e "Error when doing backup for ${varName k remote}, see above\n---------------------------------------" >&2
''
]) v.remotes