You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/snippets/recover_flost.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,58 @@ $ flost -w /your/location
12
12
!!!note
13
13
Only `/home` and `/depot/` folders have backups across RCAC resources. If you know more specifically where the lost file was you may provide the full path to that directory.
14
14
15
+
Here is an example to run `flost` for your `/home` or `/depot` space.
16
+
17
+
=== "Using `flost` on `/home`"
18
+
```bash
19
+
$ flost -w $HOME
20
+
21
+
This script will help you try to recover lost home or group directory contents.
22
+
NB: Scratch directories are not backed up and cannot be recovered.
23
+
24
+
Currently anchoring the search under: $HOME
25
+
If your lost files were on a different filesystem, exit now with Ctrl-C and
26
+
rerun flost with a suitable '-w WHERE' argument (or see 'flost -h' for help).
27
+
28
+
Please enter the date that you lost your files: 2026-05-01
29
+
30
+
The closest recovery snapshot to your date of loss currently available is from
31
+
May 1, 2026 12:10am. First, change your directory to that location:
32
+
$ cd /home/.zfs/snapshot/zfs-auto-snap_monthly-2026-05-01-0010/username
33
+
$ ls
34
+
35
+
Then copy files or directories from there back to where they belong:
36
+
$ cp mylostfile $HOME
37
+
$ cp -r mylostdirectory $HOME
38
+
```
39
+
40
+
=== "Using `flost` on `/depot`"
41
+
```bash
42
+
$ flost -w /depot/yourlab
43
+
44
+
This script will help you try to recover lost home or group directory contents.
45
+
NB: Scratch directories are not backed up and cannot be recovered.
46
+
47
+
Currently anchoring the search under: /depot/yourlab
48
+
If your lost files were on a different filesystem, exit now with Ctrl-C and
49
+
rerun flost with a suitable '-w WHERE' argument (or see 'flost -h' for help).
50
+
51
+
Please enter the date that you lost your files: 2026-05-01
52
+
53
+
The closest recovery snapshot to your date of loss currently available is from
54
+
May 1, 2026 1:15am. First, change your directory to that location:
55
+
$ cd /depot/.snapshots/@GMT-2026.05.01-05.15.00/yourlab
56
+
$ ls
57
+
58
+
Then copy files or directories from there back to where they belong:
59
+
$ cp mylostfile /depot/yourlab
60
+
$ cp -r mylostdirectory /depot/yourlab
61
+
```
62
+
15
63
This tool will prompt you for the date on which you lost the file or would like to recover the file from. If the tool finds an appropriate snapshot it will provide instructions on how to search for and recover the file.
16
64
65
+
!!!info "`flost` requires a date"
66
+
This tool will prompt you for the date on which you lost the file or would like to recover the file from. If the tool finds an appropriate snapshot it will provide instructions on how to search for and recover the file.
67
+
17
68
If you are not sure what date you lost the file you may try entering different dates into the `flost` to try to find the file or you may also [manually browse](manual.md) the snapshots as described below.
0 commit comments