Last active
April 3, 2019 20:26
-
-
Save brunojppb/909d295198b92f60a0702d8e317881c5 to your computer and use it in GitHub Desktop.
Backup Redmine script
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
# Backup redmine script | |
# see https://www.redmine.org/projects/redmine/wiki/RedmineBackupRestore | |
# Check redmine path | |
ps fax | grep redmine | |
# Dump mysql data | |
/usr/bin/mysqldump -u <USERNAME> -p<PASSWORD> -h <HOSTNAME> <DATABASE> > /var/data/redmine/backups/redmine-db-"`date +"%Y-%m-%d"`".sql | |
# TODO: Dump binary data (attachments) | |
rsync -a /path/to/redmine/files /path/to/backup/files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment