Backing up the WAPT Server on Linux

Attention

This procedure is valid for WAPT 1.5 and above.

  • stop WAPT related services on the server;

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

/var/www/wapt/
/var/www/wapt-host/
/var/www/waptwua/
/opt/wapt/conf/
/opt/wapt/waptserver/ssl/
  • backup the PostgreSQL database using the pg_dumpall utility (adapt filename with your requirements);

sudo -u postgres pg_dumpall > /tmp/backup_wapt_$(date +%Y%m%d).sql
  • restart WAPT related services on the server;

systemctl start wapttasks
systemctl start waptserver
systemctl start nginx

Backing up the WAPT Server on Windows

  • backup the WAPT repository folder C:\wapt\waptserver\repository and C:\wapt\waptserver\conf and C:\wapt\waptserver\nginx\ssl on a remote backup destination;

  • 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 server;