Skip to content

Commit 2f1f6b6

Browse files
committed
artemis/restic: backup full thing in one thing
1 parent 9ef7c32 commit 2f1f6b6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

hosts/artemis/restic.nix

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,8 @@ in
6666
dir="/tmp/postgres-backup"
6767
6868
for db in $(psql postgres -tc 'SELECT datname FROM pg_database WHERE datistemplate = false;' | grep '\S' | awk '{$1=$1};1'); do
69-
echo "Dumping schema for database $db"
7069
pg_dump "$db" \
71-
--schema-only \
72-
--file "$dir/$db-schema.psql"
73-
74-
echo "Dumping data for database $db"
75-
pg_dump "$db" \
76-
--data-only \
77-
--file "$dir/$db-data.psql"
70+
--file "$dir/$db.psql"
7871
done
7972
8073
echo "Backing up using restic"

0 commit comments

Comments
 (0)