Restore Sintelix from a Backup

Introduction

You can schedule Sintelix backups and restore backups.

Restoring Sintelix from a Backup is a manual process.

Backup locations

See Backup Sintelix for information about where backups are stored.

Command line

The restore procedure is run using command line.

Useful commands
List command

This command lists all the available restore commands, which are list and restore-db.

Usage command: restore-db

The command below describes how to use the restore command.

Restore backup

Follow the steps below to restore a backup.

  1. Stop Sintelix if restoring to the same PC.

  2. If Java is not available in the path, change the directory to where Sintelix is installed to use the Java provided by Sintelix.

  3. Copy
    cd C:\Program Files (x86)\Sintelix\jre\bin
  4. Use the list command to find out the backups in a particular backup location.

  5. Copy
    java -cp "C:\Program Files (x86)\Sintelix\webapp\WEB-INF\lib\*" com.sintelix.core.backup.restore.BackupRestore list fs "C:\Sintelix Backup"
                        
    Path names with a space in them will need to be enclosed in quotes. For example, for the backup location: "c:\Sintelix Backup".

    Result:

    Copy
    Commit         Timestamp
    -------------  ---------------
    1715662327996  Tue, 14 May 2024 04:52:07.996 Z (2024-05-14T04:52:07.996Z)
  6. Copy the commit number of the backup you want to restore, eg. 1715662327996.

  7. Run the restore command.

  8. The example below is for a local storage backup location. For the full restore command syntax, see Restore command above.
    Copy
    java -cp "C:\Program Files (x86)\Sintelix\webapp\WEB-INF\lib\*" com.sintelix.core.backup.restore.BackupRestore restore-db "C:\Sintelix Database" 1715662327996 fs "C:\Sintelix Backup"

    Result:

    The backup is restored.

    Copy
    C:\Program Files (x86)\Sintelix\jre\bin>java -cp "C:\Program Files (x86)\Sintelix\webapp\WEB-INF\lib\*" com.sintelix.core.backup.restore.BackupRestore restore-db "C:\Sintelix Database" 1715662327996 fs "C:\Sintelix Backup"
    Restoring commit 1715662327996
            from "C:\Sintelix Backup"
            to   "C:\Sintelix Database"
    10:33:20.959 [main] INFO  com.sintelix.core.backup.restore.RestoreTask - Start restore
    10:33:28.638 [main] INFO  com.sintelix.core.backup.restore.RestoreTask - Restore completed (7661ms)