Skip to main content

6. Backup and restore

Set periodic backup of directories:
/etc/isp-go
/var/lib/isp-go/.ssh

Set periodic backup of Redis database (you can get file name and path from the dbfilename and dir parameters of /etc/redis/redis.conf configuration file).

Restore process:

• Install ISP-Go. During the installation process, specify 127.0.0.1 as the IP from which access to the API is allowed in the /etc/nginx/sites-available/isp-go-api file. Do not make API requests until recovery is complete;
• Restore Redis database:
   1. Stop Redis service on the new instance - sudo service redis-server stop
   2. Copy the dump.rdb file to /var/lib/redis/ on the new instance
   3. Start Redis service on the new instance - sudo service redis-server start
• Restore files to /etc/isp-go and /var/lib/isp-go/.ssh from backup directories;
• Restart redis-server, isp-go-dnsproxy, isp-go-api and isp-go-blockpage ;