Skip to content

Instantly share code, notes, and snippets.

@aryulianto
Created March 31, 2017 09:01
Show Gist options
  • Save aryulianto/e6976c0ec833a36111775bdebbb69674 to your computer and use it in GitHub Desktop.
Save aryulianto/e6976c0ec833a36111775bdebbb69674 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -n "Waktu mulai : " ;date
for database in `cat dbmyisam.txt` ; do
mysqlhotcopy --addtodest --user=root --password=r\$h\$\%\!\$\*\)nj\)l\@\( $database /root/scripts/backupdb >> /root/scripts/backupdb/mysqlhotcopy.log
done
echo -n "Waktu selesai : " ;date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment