fix: backup bash script

This commit is contained in:
root 2024-12-19 12:47:54 +03:00
parent b62f672608
commit 49c6b54617
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
docker exec d4dd199a4566 pg_dump -U postgres postgres > $(pwd)/backups/$(date -d "today" +"%Y-%m-%d-%H-%M").sql
docker exec d4dd199a4566 pg_dump -U postgres postgres > /root/gadasin/backups/$(date -d "today" +"%Y-%m-%d-%H-%M").sql

View File

@ -1,4 +1,4 @@
mkdir backups
(crontab -l 2>/dev/null; echo "* 4 * * * $(pwd)/backup.sh") | crontab -
(crontab -l 2>/dev/null; echo "0 4 * * * $(pwd)/backup.sh") | crontab -
echo "Success"