File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ I'd recommend encrypting the archive with something strong (e.g. gpg or openssl
13
13
14
14
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz
15
15
16
- ## Restore to New Container
16
+ ## Restore to New Data Volume
17
17
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 .
19
19
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
You can’t perform that action at this time.
0 commit comments