Saving and Loading Data - AttiliaTheHun/Songbook-Manager GitHub Wiki

Saving and Loading Data

The program can work in two modes: remote mode and local mode. Changes made from the Collection Editor are saved automatically; changes from the HTML Editor are saved when selected. Changing the saving mode can be done through settings.

Local mode

Local mode means we are not working with a remote Songbook Manager server. In that case we can use local files to save/export and load/import data. When we click the 'Load' button in the Main window, we can use a local file in out computer to load a songbook. (it would be a .zip file with the data folder and the .json files). When we click the Save button, the program creates a data.zip file with the songbook. We can use this file as a backup or pass it to a friend for example.

Remote mode

Remote mode means that we have a Songbook Manager server configured and running. In this case the program will attempt to work with the server. When we click the Save button in the Main window, he will compare the local songbook and the remote songbook and upload the differences to the server. When we click the Load button, the program will again compare the differences between local and remote version of the songbook and download the differences from the server.

By differences, we mean files that do not match. The program does not inspect whose version of the file is newer, it only does as prompted to - save or load. Bear that in mind.