Both HOME and PERM systems have integrated snapshots that could be used to recover accidentally deleted files and data. The frequency of those snapshots and where they are stored varies depending on the filesystem and the period of time. Unfortunately there are no snapshots or backups for other filesystems such as SCRATCH or HPCPERM.

To recover data from the snapshots, first find the most recent snapshot containing the files you want to recover, and then just copy them back into place with the usual commands such as cp or rsync.

FilesystemFrequencyLocation
HOME

Hourly for the last 6 hours

Daily at midnight for the last 2 days

Weekly on Sunday at midnight for the last 2 weeks

Hidden .snapshot directory within any directory in $HOME

$ ls -1 .snapshot
daily.2022-03-10_0010
daily.2022-03-11_0010
hourly.2022-03-11_0605
hourly.2022-03-11_0705
hourly.2022-03-11_0805
hourly.2022-03-11_0905
hourly.2022-03-11_1005
hourly.2022-03-11_1105
weekly.2022-02-27_0015
weekly.2022-03-06_0015

Daily for the last month

Monthly on 1st day of the month for the last 2 years

Run home_snap command to list the locations of the available long-term HOME snapshots

$ home_snap

        cd into the directory of the date you want to copy from:

/ec/home_snapshot/nas1a-svm0_snapshot/.nas1a-svm0-2022-03-09/home_a/user
/ec/home_snapshot/nas1a-svm0_snapshot/.nas1a-svm0-2022-03-10/home_a/user
/ec/home_snapshot/nas1a-svm0_snapshot/.nas1a-svm0-2022-03-11/home_a/user
PERM

daily at midnight for the last 15 days

Run perm_snap command to list the locations of the available snapshots

$ perm_snap

        cd into the directory of the date you want to copy from:

/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-02-25_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-02-26_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-02-27_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-02-28_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-01_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-02_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-03_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-04_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-05_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-06_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-07_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-08_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-09_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-10_00-00/user
/ec/perm_snapshot/bodh2lnxsap-01_pool_perm_a/.zfs/snapshot/auto-2022-03-11_00-00/user