Merge pull request 'backups: remove droppie' (#194) from backups-disable-droppie into main
Reviewed-on: #194 Reviewed-by: Hendrik Sokolowski <hensoko@noreply.git.pub.solar>
This commit is contained in:
commit
a86ce80c47
|
@ -173,32 +173,6 @@
|
||||||
GPG_TTY = "$(tty)";
|
GPG_TTY = "$(tty)";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.forgejo-droppie = {
|
|
||||||
paths = [
|
|
||||||
"/var/lib/forgejo"
|
|
||||||
"/tmp/forgejo-backup.sql"
|
|
||||||
];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* 02:00:00 Etc/UTC";
|
|
||||||
# droppie will be offline if nachtigall misses the timer
|
|
||||||
Persistent = false;
|
|
||||||
};
|
|
||||||
initialize = true;
|
|
||||||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
|
||||||
repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar";
|
|
||||||
backupPrepareCommand = ''
|
|
||||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d gitea > /tmp/forgejo-backup.sql
|
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
rm /tmp/forgejo-backup.sql
|
|
||||||
'';
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 7"
|
|
||||||
"--keep-weekly 4"
|
|
||||||
"--keep-monthly 3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.restic.backups.forgejo-storagebox = {
|
services.restic.backups.forgejo-storagebox = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/forgejo"
|
"/var/lib/forgejo"
|
||||||
|
|
|
@ -60,29 +60,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.keycloak-droppie = {
|
|
||||||
paths = [ "/tmp/keycloak-backup.sql" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* 02:00:00 Etc/UTC";
|
|
||||||
# droppie will be offline if nachtigall misses the timer
|
|
||||||
Persistent = false;
|
|
||||||
};
|
|
||||||
initialize = true;
|
|
||||||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
|
||||||
repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar";
|
|
||||||
backupPrepareCommand = ''
|
|
||||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d keycloak > /tmp/keycloak-backup.sql
|
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
rm /tmp/keycloak-backup.sql
|
|
||||||
'';
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 7"
|
|
||||||
"--keep-weekly 4"
|
|
||||||
"--keep-monthly 3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.restic.backups.keycloak-storagebox = {
|
services.restic.backups.keycloak-storagebox = {
|
||||||
paths = [ "/tmp/keycloak-backup.sql" ];
|
paths = [ "/tmp/keycloak-backup.sql" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
|
|
|
@ -80,28 +80,6 @@
|
||||||
# ])
|
# ])
|
||||||
#'';
|
#'';
|
||||||
|
|
||||||
services.restic.backups.mailman-droppie = {
|
|
||||||
paths = [
|
|
||||||
"/var/lib/mailman"
|
|
||||||
"/var/lib/mailman-web/mailman-web.db"
|
|
||||||
"/var/lib/mailman-web/settings_local.json"
|
|
||||||
"/var/lib/postfix/conf/aliases.db"
|
|
||||||
];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* 02:00:00 Etc/UTC";
|
|
||||||
# droppie will be offline if nachtigall misses the timer
|
|
||||||
Persistent = false;
|
|
||||||
};
|
|
||||||
initialize = true;
|
|
||||||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
|
||||||
repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar";
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 7"
|
|
||||||
"--keep-weekly 4"
|
|
||||||
"--keep-monthly 3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.restic.backups.mailman-storagebox = {
|
services.restic.backups.mailman-storagebox = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/mailman"
|
"/var/lib/mailman"
|
||||||
|
|
|
@ -100,29 +100,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.mastodon-droppie = {
|
|
||||||
paths = [ "/tmp/mastodon-backup.sql" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* 02:00:00 Etc/UTC";
|
|
||||||
# droppie will be offline if nachtigall misses the timer
|
|
||||||
Persistent = false;
|
|
||||||
};
|
|
||||||
initialize = true;
|
|
||||||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
|
||||||
repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar";
|
|
||||||
backupPrepareCommand = ''
|
|
||||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d mastodon > /tmp/mastodon-backup.sql
|
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
rm /tmp/mastodon-backup.sql
|
|
||||||
'';
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 7"
|
|
||||||
"--keep-weekly 4"
|
|
||||||
"--keep-monthly 3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.restic.backups.mastodon-storagebox = {
|
services.restic.backups.mastodon-storagebox = {
|
||||||
paths = [ "/tmp/mastodon-backup.sql" ];
|
paths = [ "/tmp/mastodon-backup.sql" ];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
|
|
|
@ -132,32 +132,6 @@
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.nextcloud-droppie = {
|
|
||||||
paths = [
|
|
||||||
"/var/lib/nextcloud/data"
|
|
||||||
"/tmp/nextcloud-backup.sql"
|
|
||||||
];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "*-*-* 02:00:00 Etc/UTC";
|
|
||||||
# droppie will be offline if nachtigall misses the timer
|
|
||||||
Persistent = false;
|
|
||||||
};
|
|
||||||
initialize = true;
|
|
||||||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
|
||||||
repository = "sftp:yule@droppie.b12f.io:/media/internal/pub.solar";
|
|
||||||
backupPrepareCommand = ''
|
|
||||||
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d nextcloud > /tmp/nextcloud-backup.sql
|
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
rm /tmp/nextcloud-backup.sql
|
|
||||||
'';
|
|
||||||
pruneOpts = [
|
|
||||||
"--keep-daily 7"
|
|
||||||
"--keep-weekly 4"
|
|
||||||
"--keep-monthly 3"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.restic.backups.nextcloud-storagebox = {
|
services.restic.backups.nextcloud-storagebox = {
|
||||||
paths = [
|
paths = [
|
||||||
"/var/lib/nextcloud/data"
|
"/var/lib/nextcloud/data"
|
||||||
|
|
Loading…
Reference in a new issue