Server Backup and restore - AttiliaTheHun/Songbook-Manager GitHub Wiki

Backup

Automatic backup

The server can be configured to automatically backup the remote songbook before performing any remote save operations. This can be done in server settings.

Automatic backup modes

The automatic backup can be done in two ways: COMPLETE and INVERSE.

Complete backup

Complete backup means backing up the entire songbook (all song and collection files) and its remote index. The advantage is that a full backup is created, so the songbook may later be easily restored just from this one file. The disadvantages are that even the files that were not modified are being backed up, so the backup may be slower and the backup file will take more disk space:

Inverse backup

This kind of backup is supposed to represent the inverse function to the save request, meaning that

0. SEND SAVE REQUEST (SUCCESSFULL)
1.(CREATE INVERSE BACKUP)
2. RESTORE THE BACKUP
3. STATUS QUO

That being said, the inverse backup stores only the information necessary to obtain the previous state of the songbook, if the current state of the songbook is available. The advantages are clear: such backups are faster and take less disk space, however the moment our current data get corrupted the backup is pretty much useless.