Skip to content

User Data Recovery

Overview

This document outlines the process for recovering user data in cases of accidental deletion, utilizing our Weka filesystem snapshots.

Procedure

Accessing Snapshots:
From the bastion node, navigate to the .snapshots directory located in /data:

cd /data/.snapshots

(Note: The .snapshots directory will not be visible with a standard 'ls -la' command in /data, but it is accessible.)

Identifying the Correct Snapshot: In the .snapshots directory, you will find directories corresponding to various snapshots. To select the appropriate snapshot, ask the user for the timeframe of the deletion and choose the latest snapshot prior to that time:

cd /data/.snapshots/@GMT-2023.11.04-11.00.00/

(Note: For hourly snapshots, navigate into the corresponding sub-directory to access specific snapshot data.)

Recovering Data:
Within the snapshot directory, navigate to the user's home directory to locate the deleted files or directories. Communicate with the user to confirm which files or directories they need restored. Then, use the following commands to copy them back:

cp /path-to-file-in-snapshot /user-home-dir/path-to-file
cp -r /path-dir-in-snapshot /user-home-dir/path-to-dir

Confirmation:
Confirm with the user that their data was restored and have them check if any files or directories are still missing or outdated. This step is crucial to ensure the completeness and accuracy of the recovery process.

Conclusion

This document provides a detailed procedure for recovering user data from Weka snapshots.