Attention : le support de WAPT 2.0 a pris fin le 30 juin 2022.

Merci de mettre à jour sur la version supportée la plus récente

Restauration du serveur WAPT

En cas de panne complète, redémarrez une installation standard du serveur WAPT sur votre serveur. Puis suivez cette procédure pour restaurer vos données.

Linux

  • Stop WAPT related services on the WAPT Server.

systemctl stop nginx
systemctl stop waptserver
systemctl stop wapttasks
  • Restore the following directories.

    # 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/
  • Restore the database (adapt the name of your file). The first command deletes the WAPT database (if it exists). Make sure that your dump file is correct before deleting!

sudo -u postgres psql -c "drop database wapt"
sudo -u postgres psql < /tmp/backup_wapt.sql
  • Apply ownership rights to the restored folders.

    # Debian / Ubuntu
chown -R wapt:www-data /var/www/wapt/
chown -R wapt:www-data /var/www/wapt-host/
chown -R wapt:www-data /var/www/waptwua/
chown -R wapt /opt/wapt/conf/
chown -R wapt /opt/wapt/waptserver/ssl/

    # CentOS / RedHat
chown -R wapt:www-data /var/www/html/wapt/
chown -R wapt:www-data /var/www/html/wapt-host/
chown -R wapt:www-data /var/www/html/waptwua/
chown -R wapt /opt/wapt/conf/
chown -R wapt /opt/wapt/waptserver/ssl/
  • Scan package repositories.

    # Debian / Ubuntu
wapt-scanpackages /var/www/wapt/

    # CentOS / RedHat
    wapt-scanpackages /var/www/html/wapt/
  • 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 start wapttasks
    net start waptserver
    net start waptnginx
    
  • Restore the following directories.

    C:\wapt\waptserver\repository
    C:\wapt\waptserver\conf
    C:\wapt\waptserver\nginx\ssl
    
  • Apply full rights to the folder C:\wapt\waptserver\repository for the « Network Service » group.

  • Restore PostgreSQL Database with pg_restore.exe.

    "C:\wapt\waptserver\pgsql-9.6\bin\psql.exe" -f c:\backup_wapt.sql -U postgres
    
  • Scan package repositories.

    wapt-scanpackages "C:\wapt\waptserver\repository\wapt"
    
  • Restart WAPT related services on the server.

    net start wapttasks
    net start waptserver
    net start waptnginx