Backing up files to Allas from Puhti
Preparations (if not done already)
- Login to
puhti.csc.fi
(open a login node shell if using the web interface) -
In Puhti, check your environment with the command:
csc-workspaces
-
Switch to the
/scratch
directory of your projectcd /scratch/<project> # replace <project> with your CSC project, e.g. project_2001234
-
Create your own subdirectory named as your username (tip! your username is automatically stored in the environment variable
$USER
):mkdir -p $USER cd $USER
Connecting to Allas
-
Open a connection to Allas wih these commands:
module load allas allas-conf
💡 It might take a while to run
module load allas
. - If you have several projects with the Allas service available, select the one where you want to perform the backup.
-
Check how the
allas-backup
tool works with the command:allas-backup -h
-
Create a backup snapshot with the command:
allas-backup <filename> # replace <filename> with the name of the file that you want to backup
-
Check what snapshots the backup contains:
allas-backup list allas-backup list | grep $USER
- Make note of the snapshot
ID
in the first column!
- Make note of the snapshot
-
Check what files your backup contains:
allas-backup files <snapshot_id> # replace the <snapshot_id>
-
Restore the files from your backup to Puhti:
allas-backup restore <snapshot_id> # replace the <snapshot_id>
-
If you want to delete your backup, use command:
allas-backup delete <snapshot_id> # replace the <snapshot_id>