Recovering and Restoring Data in the Event of Data Loss (Private Cloud Only) - x360Sync

Written By Tami Sutcliffe (Super Administrator)

Updated at June 26th, 2023

Overview

x360Sync stores user data in buckets, called roots. Every type of data lives within a root, including:

  • Personal root, which stores a user’s personal files and folders
  • Team Share root, which stores Team Share files and folders
  • Backup root, which stores a user’s backed up files and folders

Backing Up the x360Sync Server

As a private cloud partner, it is recommended that you back up various components of your system. For more information, please reference the Backing Up the x360Sync Server Knowledgebase article.

Restoring Roots

In the event of data loss or data corruption (for example, an advanced Ransomware attack) you can recover root data by restoring the root’s file store (raw binary data) and root store (metadata) from the exact same point in time using your backups. 

Note: SaaS partners should contact Axcient Support to recover roots.

Instructions

Step 1: Determine the Roots that Need to Be Restored

  1. In the administrative web portal, navigate to the user account, Team Share, or backup that needs to be restored (the affected root).

    For example, to find an affected Team Share, click the Shares tab, and then click the Browse button next to the appropriate Team Share. You will be redirected to the end user’s view of the Team Share.

    Accounts.png

  2. Capture the URL of the root (for example, https://my.syncedtool.com/files/21).

    The URL takes the form of: https://[application server]/files/[root subscription id]

    RootURL.png

    Using the URL, locate and record the root subscription id (in this example, 21).

    Note: If you need to restore multiple roots, you must find the root subscription id for each affected root.

Step 2: Convert the root subscription id Value to a Hex Value

Root store databases and file store data are stored in files and folders that use a hex value. To find the root database in the root store, and the files in the file store, you need to convert the root subscription id value to a hex value.

  1. Open the Calculator program.
  2. In the Calculator toolbar, click the View menu, and then select Programmer. The Calculator program will now display in Programmer mode.
  3. With the Dec radio button selected, enter the root subscription id value.

    Calc_Dec.png

  4. Click the Hex radio button to view this number in Hex format.

    Calc_Hex.png
  5. Use this number to find the file store folder and root store database file.

    For example, if the root_id value is 21, then the Hex value is 15. The file store folder and root store database will end with this value. For example:

    File store example path: D:\filestore\files\000\00000015

    Root store example database: D:\x360Sync Server\store_1\roots\000\00000015.db

Step 3: Restore Data

Note: The file store data and the root store database must all be from the same point in time.

  1. Rename the old file store folder and the old root store database file to retain a copy.
  2. Replace the file store data with the data from your backup. If copying data from multiple file stores, data must be placed in the same respective file store location.
  3. Replace the root store database(s) with the database from your backup. Remember that this backup must be from the same point in time as the file store data.

Step 4: Rebuild Stats for the Affected Roots

When this data has been restored, stats need to be rebuilt for the affected roots.

  1. Open an elevated CMD prompt and navigate to [target drive:]\x360Sync Server\bin (the path to which you installed the x360Sync Server).
  2. Run the following command to review options:

    stats_mgr.exe –help

  3. In most instances, you will first run the command with the -n flag to review the output and understand what will be updated:

    stats_mgr -r ID -n --db-password PASSWORD

    Note: Make sure to replace PASSWORD with your PostgreSQL password, and ID with the root_id value you recorded earlier. Your PostgreSQL user password is listed in the [portal] section of your x360Sync config.ini file ([target drive]:\x360Sync Server\conf\config.ini).

  4. Run the command again without the -n flag to commit the changes:

    stats_mgr -r ID --db-password PASSWORD

 


 


SUPPORT | 720-204-4500 | 800-352-0248

1532