Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
2b341d88
Commit
2b341d88
authored
May 30, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
merge #396 - allow the backup process to work after a hostname change
parents
6378ec4b
141a09b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGELOG.md
CHANGELOG.md
+1
-0
backup.py
management/backup.py
+5
-3
No files found.
CHANGELOG.md
View file @
2b341d88
...
...
@@ -10,6 +10,7 @@ In Development
*
Fix broken install on OVH VPS's.
*
After installing an SSL certificate from the control panel, the page wasn't being refreshed.
*
The minimum greylisting delay has been reduced from 5 minutes to 3 minutes.
*
Backups broke if the box's hostname was changed after installation.
v0.09 (May 8, 2015)
-------------------
...
...
management/backup.py
View file @
2b341d88
...
...
@@ -180,8 +180,9 @@ def perform_backup(full_backup):
if
len
(
passphrase
)
<
43
:
raise
Exception
(
"secret_key.txt's first line is too short!"
)
env_with_passphrase
=
{
"PASSPHRASE"
:
passphrase
}
# Update the backup mirror directory which mirrors the current
# STORAGE_ROOT (but excluding the backups themselves!).
# Run a backup of STORAGE_ROOT (but excluding the backups themselves!).
# --allow-source-mismatch is needed in case the box's hostname is changed
# after the first backup. See #396.
try
:
shell
(
'check_call'
,
[
"/usr/bin/duplicity"
,
...
...
@@ -191,7 +192,8 @@ def perform_backup(full_backup):
"--volsize"
,
"250"
,
"--gpg-options"
,
"--cipher-algo=AES256"
,
env
[
"STORAGE_ROOT"
],
"file://"
+
backup_dir
"file://"
+
backup_dir
,
"--allow-source-mismatch"
],
env_with_passphrase
)
finally
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment