Created
July 4, 2021 14:35
-
-
Save ayrilmaz/ccc7d1c2b593713fb9ab14de56e284f4 to your computer and use it in GitHub Desktop.
Crontab Postgres backup command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 8 * * * sudo pg_dump --blobs -Fc --no-owner --dbname=postgresql://backuper:backup_user@localhost:5432/db_name | gzip > /root/Yandex.Disk/Postgres/`date '+\%m-\%d-\%Y'`.gzip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment