Java
- 3 ответа
- 0 вопросов
1
Вклад в тег
#!/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