Skip to content

Commit b1d33af

Browse files
author
purduercac-docs-bot
committed
Merge remote-tracking branch 'origin/main' into dev
2 parents 428d0b4 + 909965e commit b1d33af

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

docs/snippets/recover_flost.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,58 @@ $ flost -w /your/location
1212
!!!note
1313
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.
1414

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+
1563
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.
1664

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+
1768
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.
1869

0 commit comments

Comments
 (0)