We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ef7c32 commit 2f1f6b6Copy full SHA for 2f1f6b6
hosts/artemis/restic.nix
@@ -66,15 +66,8 @@ in
66
dir="/tmp/postgres-backup"
67
68
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"
70
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"
+ --file "$dir/$db.psql"
78
done
79
80
echo "Backing up using restic"
0 commit comments