chore: simplify sudo command for backups
This commit is contained in:
parent
052d752d27
commit
c8233cf6a7
|
@ -122,7 +122,7 @@
|
|||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
||||
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
|
||||
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 = ''
|
||||
rm /tmp/forgejo-backup.sql
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
||||
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
|
||||
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 = ''
|
||||
rm /tmp/keycloak-backup.sql
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
||||
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
|
||||
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 = ''
|
||||
rm /tmp/mastodon-backup.sql
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
passwordFile = config.age.secrets."restic-repo-droppie".path;
|
||||
repository = "yule@droppie.b12f.io:/media/internal/backups-pub-solar";
|
||||
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 = ''
|
||||
rm /tmp/nextcloud-backup.sql
|
||||
|
|
Loading…
Reference in a new issue