Skip to content

Commit 14d6f7f

Browse files
committed
docs: backup: Fix missing volume creation
* Create the volume before extracting. * Resolves #195
1 parent 431c4a3 commit 14d6f7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/backup.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ I'd recommend encrypting the archive with something strong (e.g. gpg or openssl
1313

1414
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz
1515

16-
## Restore to New Container
16+
## Restore to New Data Volume
1717

18-
Assumes an existing container named `$OVPN_DATA` to extract the data over the top.
18+
Creates an volume container named `$OVPN_DATA` to extract the data to.
1919

20-
xzcat openvpn-backup.tar.xz | docker run --name $OVPN_DATA -v /etc/openvpn -i kylemanna/openvpn tar -xvf - -C /etc
20+
docker volume create --name $OVPN_DATA
21+
xzcat openvpn-backup.tar.xz | docker run $OVPN_DATA:/etc/openvpn -i kylemanna/openvpn tar -xvf - -C /etc

0 commit comments

Comments
 (0)