backups #47

Merged
teutat3s merged 7 commits from feat/backups into main 2023-11-06 21:24:04 +00:00
4 changed files with 4 additions and 4 deletions
Showing only changes of commit c8233cf6a7 - Show all commits

View file

@ -122,7 +122,7 @@
passwordFile = config.age.secrets."restic-repo-droppie".path; passwordFile = config.age.secrets."restic-repo-droppie".path;
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar"; repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.sudo}/bin/sudo -iu postgres ${pkgs.postgresql}/bin/pg_dump -d gitea > /tmp/forgejo-backup.sql ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d gitea > /tmp/forgejo-backup.sql
''; '';
backupCleanupCommand = '' backupCleanupCommand = ''
rm /tmp/forgejo-backup.sql rm /tmp/forgejo-backup.sql

View file

@ -60,7 +60,7 @@
passwordFile = config.age.secrets."restic-repo-droppie".path; passwordFile = config.age.secrets."restic-repo-droppie".path;
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar"; repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.sudo}/bin/sudo -iu postgres ${pkgs.postgresql}/bin/pg_dump -d keycloak > /tmp/keycloak-backup.sql ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d keycloak > /tmp/keycloak-backup.sql
''; '';
backupCleanupCommand = '' backupCleanupCommand = ''
rm /tmp/keycloak-backup.sql rm /tmp/keycloak-backup.sql

View file

@ -107,7 +107,7 @@
passwordFile = config.age.secrets."restic-repo-droppie".path; passwordFile = config.age.secrets."restic-repo-droppie".path;
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar"; repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.sudo}/bin/sudo -iu postgres ${pkgs.postgresql}/bin/pg_dump -d mastodon > /tmp/mastodon-backup.sql ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d mastodon > /tmp/mastodon-backup.sql
''; '';
backupCleanupCommand = '' backupCleanupCommand = ''
rm /tmp/mastodon-backup.sql rm /tmp/mastodon-backup.sql

View file

@ -145,7 +145,7 @@
passwordFile = config.age.secrets."restic-repo-droppie".path; passwordFile = config.age.secrets."restic-repo-droppie".path;
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar"; repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.sudo}/bin/sudo -iu postgres ${pkgs.postgresql}/bin/pg_dump -d nextcloud > /tmp/nextcloud-backup.sql ${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql}/bin/pg_dump -d nextcloud > /tmp/nextcloud-backup.sql
''; '';
backupCleanupCommand = '' backupCleanupCommand = ''
rm /tmp/nextcloud-backup.sql rm /tmp/nextcloud-backup.sql