fix: backup bash script
This commit is contained in:
parent
b62f672608
commit
49c6b54617
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue