Overview

  • Backup Process
  • The process of restoring the derby database.
  • The process of restoring the netLD PostgreSQL database.


Backup Process


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:



In the case of derby

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

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


In the case of pgsql

drwxr-xr-x. 4 netld netld 4096 Aug 22 20:30 lucene

drwxr-xr-x. 3 netld netld 4096 Aug 22 20:36 pgsql


The process of restoring the derby database.


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)


The process of restoring the derby database.


The method of restoration in the case of postgresql is as follows.

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:


1. Stop NetLD service


systemctl stop netld ( or service netld stop)


2. Stop netld-PGSQL service


systemctl stop netld-pgsql ( or service netld-pgsql stop)


3.Move pgsql directory in the installation folder.

    

/usr/share/netld/pgsql


4. Copy pgsql data in the daily backup folder and paste to the installation directory.


/usr/share/netld/pgsql/data/


please check the permission of each directory.      


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


5. Start netld-pgsql service


systemctl start netld-pgsql ( or service netld-pgsql start)


6.Start NetLD service.


systemctl start netld ( or service netld start)