Skip to content

Retrieving deleted files from snapshots

You can retrieve old versions of or deleted files from snapshots. This works for files in the /t3home and /work areas.

/t3home snapshot example:

Access the special ~/.snapshot directory to list the available snapshots

$ cd /t3home/$USER/.snapshot
$ ls 
daily.2019-02-26_0010  daily.2019-02-27_0010  monthly.2019-02-01_0010  weekly.2019-02-24_001

/work snapshot example

Snapshots are available below the /work/.zfs/snapshot directory.

[feichtinger@t3ui01 feichtinger]$ ls -a /work/.zfs/snapshot
.                      snap-20210201-215535        snap-daily-20210310-063001
..                     snap-daily-20210306-063001  snap-daily-20210311-063001
base-copy              snap-daily-20210307-063001  snap-daily-20210312-063001
snap-2021-01-26T18:59  snap-daily-20210308-063001
snap-2021-01-29T23:41  snap-daily-20210309-063001

[feichtinger@t3ui01 feichtinger]$ cp /work/.zfs/snapshot/snap-daily-20210308-063001/feichtinger/nfstestfile /tmp