Answer the question
In order to leave comments, you need to log in
How do you backup your Redmine issue trackers?
Well, it's time to make backups, and before merging everything separately, I would like to ask a question, maybe someone has invented some more or less automated methods and methods for themselves? I will be glad for feedback.
ps can eat "hubs" more suitable?
Answer the question
In order to leave comments, you need to log in
Pretty simple script, works for bitnami redmine stack. First we make a backup of mysql, then we stop redmine, copy the files to the archive and start again. As a result, we have an archive file redmine_backup.tar.gz, which can be copied to a remote storage.
#!/bin/sh
PATH="/opt/bitnami/perl/bin:/opt/bitnami/git/bin:/opt/bitnami/sqlite/bin:/opt/bitnami/ruby/bin:/opt/bitnami/subversion/bin:/opt/bitnami/mysql/bin:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:$PATH"
export PATH
export BACKUP_DIR=/home/bitnami/redmine_backup
mysqldump -u root --password= bitnami_redmine > $BACKUP_DIR/redmine_backup.sql
sudo /opt/bitnami/ctlscript.sh stop
cp -r /opt/bitnami/apps/redmine/* $BACKUP_DIR/redmine-backup
sudo /opt/bitnami/ctlscript.sh start
tar cfz redmine_backup.tar.gz redmine_backup
Another option is to make backups via github.com/meskyanichi/backup
You can immediately upload them to S3.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question