Server Backup#
We’ll describe how to create a backup, and restore that backup of an eduVPN / Let’s Connect! server.
NOTE: the backup is only for the VPN server configuration and data, NOT things like SAML configuration, installed LDAP certificates and/or network configuration!
Backup#
Run this (as root
):
# tar --selinux -cpJf "/tmp/backup-$(date +%Y%m%d%H%M%S).tar.xz" \
/etc/vpn-user-portal \
/etc/vpn-server-api \
/etc/vpn-server-node \
/var/lib/vpn-user-portal \
/var/lib/vpn-server-api
NOTE: the --selinux
flag is needed on Fedora / EL, but can be omitted on
Debian / Ubuntu.
Restore#
Run this (as root
):
# cd / && tar --selinux -xJf "/tmp/backup-the-data-of-the-backup.tar.xz"
# vpn-maint-apply-changes
NOTE: the --selinux
flag is needed on Fedora / EL, but can be omitted on
Debian / Ubuntu.