Skip to content

Commit

Permalink
backup: Add restore step
Browse files Browse the repository at this point in the history
* Add restore step
* Use lzma compression since we're in the 2010's
  • Loading branch information
kylemanna committed Jul 6, 2014
1 parent 31d6314 commit ca8f41f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ I'd recommend encrypting the archive with something strong (e.g. gpg or openssl

TL;DR Protect the resulting archive file, by ensure there is very limited access to it.

## Simple
## Backup to Archive

docker run --volumes-from openvpn-data --rm kylemanna/openvpn tar czf - -C /etc openvpn > openvpn-backup.tar.gz
docker run --volumes-from openvpn-data --rm busybox tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz

## Retore to New Image

xzcat openvpn-backup.tar.xz | docker run --name openvpn-data -v /etc/openvpn -i busybox tar -xvf - -C /etc

0 comments on commit ca8f41f

Please sign in to comment.