Backing up the WAPT Server

To backup your server follow this procedure. Regular backups are recommended.

Linux

  • stop WAPT related services on the server :

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

    • Debian / Ubuntu :

    /var/www/wapt/
    /var/www/wapt-host/
    /var/www/waptwua/
    /opt/wapt/conf/
    /opt/wapt/waptserver/ssl/
    
    • Centos / RedHat :

    /var/www/html/wapt/
    /var/www/html/wapt-host/
    /var/www/html/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

Windows

  • stop WAPT related services on the 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
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 server :

net start wapttasks
net start waptserver
net start waptnginx