backups #47
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue