Posted By

Triconium on 04/25/10


Tagged

database sql db Shell Bash server backup IT


Versions (?)

Simple Backup Script Template


 / Published in: Bash
 

  1. #!/bin/bash
  2. date_time=`date +%Y.%m.%d-%H.%M.%S`
  3. `mysqldump -u user -ppassword database > /path/database_$date_time.sql`

Report this snippet  

You need to login to post a comment.