Tutorial: How to Back Up Access Server Configuration on Docker
Overview
You have the option to deploy Access Server on a Docker container. This tutorial applies to creating a backup of a configuration for an Access Server Docker deployment.
Access Server stores configurations in SQLite database files. This tutorial covers creating a backup of those files in the Docker Linux host.
An Access Server installed on Docker.
Access to the Docker Linux host console and the ability to get root access.
Use the commands below to create configuration file backups while the Access Server container image is running. You don't need to stop the container image for this; it can continue running.
Sign in to the Docker Linux host console and get root privileges.
Run these commands to create Access Server configuration backups:
In the above output, the data folder is openvpnas, so this is the folder you need to use in the backup commands like this:
cd /openvpnas/etc/db
After running these commands, you can find the backup files ending in .bak in the <data_folder> directory. The files contain everything unique about your Access Server installation.
You can restore the resulting backup files to another Access Server, including a higher version of Access Server, as we try to maintain backward compatibility.
If the configuration becomes completely lost at any point, all currently installed OpenVPN clients will be unable to connect to this server. Unique information stored in the certificates database cannot be recreated. Each installation of Access Server has unique certificates, and if you lose this information without a backup, you must completely reinstall Access Server and the VPN clients.