# 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 --exclude-other-filesystems --full-if-older-than $MAX_FULLBKP_AGE "
# Backups older than 2months are deleted
MAX_AGE=2M
# Keep 2 full backups
}];
services.duplyBackup.profiles.pub = {
rootDir = "/var/lib/pub";
+ remotes = [ "eriomem" "ovh" ];
};
users.users.pub = let
restrict = pkgs.runCommand "restrict" {
config = lib.mkIf config.myServices.websites.enable {
services.duplyBackup.profiles.php = {
rootDir = "/var/lib/php";
+ remotes = [ "eriomem" "ovh" ];
};
users.users.wwwrun.extraGroups = [ "keys" ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
in rec {
backups = {
rootDir = varDir;
+ remotes = [ "eriomem" "ovh" ];
};
activationScript = ''
install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \