Backing up the WAPT Server

To backup your WAPT Server follow this procedure. Regular backups are recommended.

Linux

  • Stop WAPT related services on the WAPT Server.

systemctl stop wapttasks
systemctl stop waptserver
systemctl stop nginx
  • Backup these directories using a backup tool (ex: rsync, WInSCP, etc..).

/var/www/wapt/
/var/www/wapt-host/
/var/www/waptwua/
/var/www/wads/
/opt/wapt/conf/
/opt/wapt/waptserver/ssl/

Hint

If you use Kerberos to authenticate hosts and users, save the keytab file too. The keytab file is located in the nginx folder.

  • Backup the PostgreSQL database using the pg_dumpall utility (adapt filename with your requirements).

sudo -u postgres pg_dumpall > /tmp/backup_wapt.sql
  • Restart WAPT related services on the WAPT Server.

systemctl start wapttasks
systemctl start waptserver
systemctl start nginx

Windows

  • Stop WAPT related services on the WAPT Server.

net stop wapttasks
net stop waptserver
net stop waptnginx
  • Backup the WAPT repository folder on a remote backup destination.

C:\wapt\conf
C:\wapt\waptserver\repository\wapt
C:\wapt\waptserver\repository\wapt-host
C:\wapt\waptserver\repository\waptwua
C:\wapt\waptserver\repository\wads
C:\wapt\waptserver\nginx\ssl
  • Backup PostgreSQL Database with pg_dump.exe.

"C:\wapt\waptserver\pgsql-9.6\bin\pg_dumpall.exe" -U postgres -f C:\backup_wapt.sql
  • Restart WAPT related services on the WAPT Server.

net start wapttasks
net start waptserver
net start waptnginx