1
1
1eon2012-05-08 18:11:16
linux
1eon, 2012-05-08 18:11:16

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

3 answer(s)
M
mv200580, 2012-05-08
@mv200580

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

@
@mgyk, 2012-05-09
_

Another option is to make backups via github.com/meskyanichi/backup
You can immediately upload them to S3.

G
giner, 2012-05-08
@giner

We have a database in sqlite3, so the backup comes down to simply copying the directory with Redmine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question