Skip to content

Instantly share code, notes, and snippets.

@xiangjian
Last active December 10, 2015 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiangjian/4483276 to your computer and use it in GitHub Desktop.
Save xiangjian/4483276 to your computer and use it in GitHub Desktop.
#!/bin/sh
backuppath="/home/epmds/backup"
user=""
password=""
db=""
redsource=""
# backup mysql
/usr/bin/mysqldump -u $user -p$password $db | gzip > $backuppath/redmine_`date +%y_%m_%d`.gz
# backup redmine attchment files
rsync -a /opt/redmine/redminefiles $backuppath
# backup redmine web
# rsync -a $redsource $backuppath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment