Skip to content

Instantly share code, notes, and snippets.

@ykws
Last active November 15, 2016 16:29
Show Gist options
  • Save ykws/99e458afeca2e5c1f141c99adffb3f62 to your computer and use it in GitHub Desktop.
Save ykws/99e458afeca2e5c1f141c99adffb3f62 to your computer and use it in GitHub Desktop.
Tips: Automatically backup Bitnami Redmine for Windows ref: http://qiita.com/ykws/items/f206078f8710ceb9fe82
@echo off
<Bitnami Redmine Install Drive. If C was C:>
cd <Bitnami Redmine Install Path by htdocs>
<Bitnami mysql Install Path>mysqldump -u root -p<password> bitnami_redmine > backup.sql
net use <Share Files Server Path[=SFSP]>
copy config¥database.yml <SFSP> /Y
copy config¥configuration.yml <SFSP> /Y
copy backup.sql <SFSP> /Y
xcopy files <SFSP>¥files /Y /I /S
xcopy plugins <SFSP>¥plugins /Y /I /S
xcopy public¥themes <SFSP>¥themes /Y /I /S
copy log¥production.log <SFSP> /Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment