-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround docs for MemoryError during backup
Time-sensitive due to Xenial updates in progress. This will be resolved with #4326 in 0.12.1, though we may want to keep some version of this documentation around in case people still encounter issues during the playbook run. Credit to @rmol for authoring the rsync command used here, which has been used during real-world upgrades.
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. note:: | ||
When dealing with larger backups, the ``securedrop-admin backup`` command may | ||
fail with a ``MemoryError`` at this stage of the operation: "Fetch the backup | ||
tarball back to the Admin Workstation". | ||
|
||
If this happens, a backup was successfully generated, but it is still | ||
on the server. Run this command from your ``~/Persistent/securedrop`` | ||
directory to copy the backup your *Admin Workstation*: | ||
|
||
.. code:: bash | ||
|
||
rsync -av --progress --partial app:$(ssh app ls -1rt /tmp/sd-backup* | tail -1) install_files/ansible-base/ | ||
|
||
If the transfer fails or is interrupted, you can simply run this command again | ||
to resume it. | ||
|
||
Note that this method will only work if you have first run the | ||
``securedrop-admin backup`` command, and the backup has successfully progressed | ||
at least until the "Fetch the backup tarball" stage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters