summaryrefslogtreecommitdiff
path: root/backup-snapshot
Commit message (Collapse)AuthorAgeFilesLines
* backup-snapshot: Fix syntaxPedro Alvarez2015-11-051-1/+1
| | | | | | | | | | | The script was failing with: File "/usr/bin/backup-snapshot", line 235 run_rsync_server(mount_path, sender_flag)) ^ SyntaxError: invalid syntax Change-Id: Ifb82f1b8fb296ccbebb3392c348668b673e312c8
* Add a simple data backup mechanismSam Thursfield2015-03-301-0/+249
The technique used is: create a new SSH key for backup automation, and authorize it to log in as 'root' to instances. To reduce potential harm if the key somehow gets compromised, it is limited to logging in from a single IP, and it is limited to running the 'backup-snapshot' program on the instances. Inside each instance, the `backup-snapshot` script is used as a wrapper for the `rsync --server` process. This script pauses running services, takes a snapshot of the data volume, and then runs the RSync server. Change-Id: I3c98ffe3dc2fa1373bd0df2388145636e491bf57