-
-
Save naviat/6a2ddc39a77d94ad92b1bba50305f9c9 to your computer and use it in GitHub Desktop.
Dump backup scripts
This file contains hidden or 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
#!/bin/bash | |
DB_DIR='file-dumps' | |
rsync -avz DB_DIR app@ip_address:/home/app/backup | |
echo "Dump has been synced successfully at $(date)" >> /tmp/dump_cron_log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment