Backup command
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
sudo echo "Root obtained."
|
||||
echo Backing up
|
||||
cd ~superdinmc/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
|
||||
Reference in New Issue
Block a user