Created
April 26, 2016 16:42
-
-
Save garrettr/1f808770d692f51b1e1a0059c336df5f to your computer and use it in GitHub Desktop.
SecureDrop: Large Restore over Tor
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
➜ securedrop git:(improve-backup-and-restore) ✗ SECUREDROP_SSH_OVER_TOR=1 vagrant provision app-staging | |
==> app-staging: Running provisioner: ansible... | |
app-staging: Running ansible-playbook... | |
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --limit='all' --inventory-file=/Users/garrett/code/freedomofpress/securedrop/.vagrant/provisioners/ansible/inventory -v --tags=backup install_files/ansible-base/securedrop-staging.yml | |
PLAY [app-staging] ************************************************************ | |
GATHERING FACTS *************************************************************** | |
ok: [app-staging] | |
TASK: [backup | copy the versions collect.py script to the target server /tmp directory] *** | |
changed: [app-staging] => {"changed": true, "checksum": "ba7cd234507da9b3eee6f8dbf36572a31104f4cb", "dest": "/tmp/0.3_collect.py", "gid": 0, "group": "root", "md5sum": "236a12d94d7b90ba95ff259286d14cad", "mode": "0770", "owner": "root", "size": 1043, "src": "/home/vagrant/.ansible/tmp/ansible-tmp-1461621860.64-89578411328656/source", "state": "file", "uid": 0} | |
TASK: [backup | run the backup script] **************************************** | |
changed: [app-staging] => {"ansible_job_id": "976240339228.16369", "changed": true, "cmd": ["/tmp/0.3_collect.py"], "delta": "0:00:00.032789", "end": "2016-04-25 22:04:41.287856", "finished": 1, "rc": 0, "start": "2016-04-25 22:04:41.255067", "stderr": "", "stdout": "sd-backup-2016-04-25--22-04-41.tar.gz", "warnings": []} | |
<job 976240339228.16369> finished on app-staging | |
TASK: [backup | fetch the backup file back to the host machine\'s ansible-base directory] *** | |
changed: [app-staging] => {"changed": true, "checksum": "2c15e686ebde74550f70b5289505a711fb5715bd", "dest": "/Users/garrett/code/freedomofpress/securedrop/install_files/ansible-base/sd-backup-2016-04-25--22-04-41.tar.gz", "md5sum": "98deb30ed7667d757e6ba781a44fa2a9", "remote_checksum": "2c15e686ebde74550f70b5289505a711fb5715bd", "remote_md5sum": null} | |
TASK: [backup | delete backup file to save space] ***************************** | |
changed: [app-staging] => {"changed": true, "path": "/tmp/sd-backup-2016-04-25--22-04-41.tar.gz", "state": "absent"} | |
TASK: [backup | copy restore script to app server] **************************** | |
ok: [app-staging] => {"changed": false, "checksum": "a225e83baaaf057ea7e8787e650f36d387c86333", "dest": "/tmp/0.3_restore.py", "gid": 0, "group": "root", "mode": "0770", "owner": "root", "path": "/tmp/0.3_restore.py", "size": 1409, "state": "file", "uid": 0} | |
TASK: [backup | copy restore file to app server] ****************************** | |
changed: [app-staging] => {"changed": true, "checksum": "6434045a95e7be4d23f4478ed400ca6293c47299", "dest": "/tmp/sd-backup-2016-04-14--22-42-38.tar.gz", "gid": 0, "group": "root", "md5sum": "eee1cc34f6c62c9908d9386576f28fc7", "mode": "0644", "owner": "root", "size": 2133225998, "src": "/home/vagrant/.ansible/tmp/ansible-tmp-1461621914.05-221176864201465/source", "state": "file", "uid": 0} | |
TASK: [backup | run the restore script] *************************************** | |
ok: [app-staging] => {"ansible_job_id": "638796938263.15464", "changed": false, "finished": 0, "results_file": "/root/.ansible_async/638796938263.15464", "started": 1} | |
<job 638796938263.15464> polling, 3590s remaining | |
ok: [app-staging] => {"ansible_job_id": "638796938263.15464", "changed": false, "finished": 0, "results_file": "/root/.ansible_async/638796938263.15464", "started": 1} | |
<job 638796938263.15464> polling, 3580s remaining | |
changed: [app-staging] => {"ansible_job_id": "638796938263.15464", "changed": true, "cmd": ["/tmp/0.3_restore.py", "/tmp/sd-backup-2016-04-14--22-42-38.tar.gz"], "delta": "0:00:30.222330", "end": "2016-04-26 01:08:18.887909", "finished": 1, "rc": 0, "start": "2016-04-26 01:07:48.665579", "stderr": "", "stdout": " * Restarting web server apache2\n ...done.\n * Reloading tor daemon configuration...\n ...done.", "warnings": []} | |
<job 638796938263.15464> finished on app-staging | |
TASK: [backup | delete the restore file to save space] ************************ | |
changed: [app-staging] => {"changed": true, "path": "/tmp/sd-backup-2016-04-14--22-42-38.tar.gz", "state": "absent"} | |
PLAY RECAP ******************************************************************** | |
app-staging : ok=11 changed=7 unreachable=0 failed=0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment