Last active
March 6, 2019 09:58
-
-
Save eftakhairul/55acebc9070fd2236a9bbb468e384572 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