Skip to content

Instantly share code, notes, and snippets.

@brunojppb
Last active April 3, 2019 20:26
Show Gist options
  • Save brunojppb/909d295198b92f60a0702d8e317881c5 to your computer and use it in GitHub Desktop.
Save brunojppb/909d295198b92f60a0702d8e317881c5 to your computer and use it in GitHub Desktop.
Backup Redmine script
# 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