Skip to content

VPN Backups

vdo edited this page Apr 11, 2019 · 1 revision

To do a backup of the VPN related data and restore (or migrate) it later, follow this steps:

    docker run --rm --volumes-from DAppNodeCore-vpn.dnp.dappnode.eth -v $(pwd):/backup alpine tar cvzf /backup/backup_vpn.tar.gz /etc/openvpn/

A file named backup_vpn.tar.gz will be created in your current path.

To restore it, proceed as follows:

    docker run --rm --volumes-from DAppNodeCore-vpn.dnp.dappnode.eth -v $(pwd):/backup alpine sh -c "cd /etc/openvpn && tar xvzf /backup/backup_vpn.tar.gz --strip 2"

then, restart the package:

docker restart DAppNodeCore-vpn.dnp.dappnode.eth
You can’t perform that action at this time.