update cluster backup script

This commit is contained in:
Dreamgineer
2025-11-09 00:09:23 -05:00 Unverified
parent 568fedf122
commit b34c4bcead
Regular → Executable
+2 -2
View File
@@ -1,8 +1,8 @@
sudo echo "Root obtained."
echo Backing up
cd ~superdinmc/kpspnextgen
cd ~dmgnr/kpspnextgen
docker compose exec -it db bash -c "pg_dumpall -h localhost -p 5432 -U postgres > /pgdata/cluster.sql"
echo -n "Copying backup file to "
cd -
sudo cp /var/lib/docker/volumes/kpspnextgen_pgdata/_data/cluster.sql ./cluster.sql
sudo chown superdinmc:users ./cluster.sql
sudo chown $USER:users ./cluster.sql