# How to restore files?

## How to restore user or project data

All files within the compute project directories ($PROJECT) are automatically backed up by TSM (Tivoli Storage Manager) function. To restore a file, use adsmback -type=project & on JUDAC. This command grants access to the correct backup data of the project repository. Follow the GUI by selecting:  Restore -> View -> Display active/inactive files  File level -> p> project -> group -> ...  Select files or directories to restore  Press [Restore] button If the data should be restored to original location then choose within the Restore Destination window • Original location Otherwise select: • Following location + <path> + Restore complete path ###$FASTDATA - Data project repository (bandwidth optimized)

The files within the data project directories ($FASTDATA) are not externally backed up to tape. Instead, an internal backup based on the snapshot feature from the file system (GPFS) is offered. The difference between the TSM backup and the snapshot based backup is, that TSM act on file changes while snapshots save the state at a certain point in time. Right now the following snapshots are configured:  daily backup last day today, just after midnight weekly backup last week every Sunday, just after midnight monthly backup last three retention every 1st day of month, just after midnight The snapshots can be found in a special subdirectory of the project repository. Go to cd$FASTDATA/.snapshots

and list contents

/p/fastdata/jsc/.snapshots> ls
daily-20181129
daily-20181130
daily-20181203
weekly-20181118
weekly-20181125
weekly-20181202
monthly-20181001
monthly-20181101
monthly-20181201

In the subdirectory <type>-<YYYYMMDD> the file version which was valid at date DD.MM.YYYY can be retrieved using the same path as the actual file is placed in the $FASTDATA repository. Due to the fact that the snapshot is part of the file system, the data restore can be performed on any system where it is mounted. ###$DATA - Data project repository (large capacity)

The files within the data project directories ($DATA) are not externally backed up to tape. Instead, an internal backup based on the snapshot feature from the file system (GPFS) is offered. The difference between the TSM backup and the snapshot based backup is, that TSM act on file changes while snapshots save the state at a certain point in time. Right now the following snapshots are configured:  daily backup last three retention today, just after midnight weekly backup last three retention every Sunday, just after midnight monthly backup last three retention every 1st day of month, just after midnight The snapshots can be found in a special subdirectory of the project repository. Go to cd$DATA/.snapshots

and list contents

/p/largedata/jsc> ls
daily-20181129
daily-20181130
daily-20181203
weekly-20181118
weekly-20181125
weekly-20181202
monthly-20181001
monthly-20181101
monthly-20181201

In the subdirectory <type>-<YYYYMMDD> the file version which was valid at date DD.MM.YYYY can be retrieved using the same path as the actual file is placed in the $DATA repository. Due to the fact that the snapshot is part of the file system, the data restore can be performed on any system where it is mounted. ###$ARCHIVE - The Archive data repository

All files within the user's archive directory (\$ARCHIVE) for long term storage are automatically backed up by TSM (Tivoli Storage Manager) function. To restore a file, use

on JUDAC.

This command grants access to the correct backup data of the project's assigned archive directory.

 Restore -> View -> Display active/inactive files
 File level -> archX -> group -> ...
 Select files or directories to restore
 Press [Restore] button