Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. NOWT=$(date +"%Y-%m-%d")
  2. FILE="/opt/DBBackup/TRAINING-DB-$NOWT.sql"
  3. mysqldump --login-path=local training > $FILE
  4. IP=192.168.0.113
  5. scp $FILE root@$IP:/opt/DB_STORE
  6. Now finally we need to change the file permission for the script to be executable as follows:
  7. # chmod 744 /usr/backup-scripts/databasebackup.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement