HOWTO Commands

When the Access Server is off, backing up the Access Server state
is just a matter of backing up the /usr/local/openvpn_as/etc directory.

When the Access Server is on, to prevent database files from being
copied in an inconsistent state, you can use the sqlite3 tool
(in /usr/local/openvpn_as/scripts) to back up the DB files to an
text .dump file.

The Access Server uses Sqlite DBs located in /usr/local/openvpn_as/etc/db :

certs.db : certificates
config.db : configuration
log.db : connection log
userprop.db : user properties/permissions

Dump Sqlite DB to text:

./sqlite3 [DB_FILE] .dump >[TEXT_FILE]

Restore Sqlite DB from text:

./sqlite3 <[TEXT_FILE] [DB_FILE]

While the DBs can be dumped while the Access Server is running, you
should stop the Access Server before you restore the DBs.