Net LineDancer performs daily backups by default, and can perform backups on-demand through the Settings dialog when logged in as an Administrator role user:


Backups are stored by default in the backups directory in the Net LineDancer installation folder.  Within this directory you will find  subdirectories for each backup that has run, up to the number of backups configured above:


drwxr-x---  4 netld  netld  136 Sep 18 23:26 backup_2016-09-18

drwxr-x---  4 netld  netld  136 Sep 19 23:24 backup_2016-09-19

drwxr-x---  4 netld  netld  136 Sep 20 23:16 backup_2016-09-20

drwxr-x---  4 netld  netld  136 Sep 21 23:13 backup_2016-09-21


And within each backup diectory you will find a subdirectory called lucene and a subdirectory called either derby or pgsql, depending on your database type:


drwxr-x---  3 netld  netld  102 Sep 21 23:13 derby

drwxr-x---  4 netld  netld  136 Sep 21 22:10 lucene


You can restore NetLD in the following steps.


1. Stop NetLD service


Windows: net stop netld


Linux : systemctl stop netld ( or service netld stop)


2. Move derby and lucene directory in the installation folder.

    

Installation folder (Default setting):         


Windows: c:\program files\Net LineDancer        


Linux: /usr/share/netld


3. Copy derby and lucene directory in the daily backup folder and paste to the installation directory.


In the linux version, please check the permission of each directory.      


If it is not set to "netld:netld", please run "chown -R netld:netld /usr/share/netld/derby /usr/share/netld/lucene" command.


4. Start NetLD service.


Windows: net start netld       


Linux : systemctl start netld ( or service netld start)