-
The archive space is located at /MRIArchive. It' folder structure has been organized similarly to the /MRIWork space.
For example:
The data in folder
/MRIWork/MRIWork10/pv/<user_folder>/Old/
should be compressed and archived in/MRIArchive/MRIWork10/pv/<user_folder>/Old.tar.gz
location as a compressed tarball gzip file. Individuals will have writing permissions to their respective archive folders.
-
Use the
tar cvf
andgzip -9
commands to achieve highest compression.For example:
tar cvf - /MRIWork/MRIWork10/pv/<user_folder>/Old/ | gzip -9 -> /MRIArchive/MRIWork10/pv/<user_folder>/Old.tar.gz
- use the
/usr/local/apps/psycapps/Archive_Old_Workspace/Check_Backup_Content.sh
script to check whether the backed-up content is same as the original. It is done with the help of file identifiers calledmd5sums
. The script takes 2 inputs (input 1 -> path to the original folder, input 2 -> path to the Tarball archive) and produces a report. For example:
bash /usr/local/apps/Archive_Old_Workspace/Check_Backup_Content.sh /MRIWork/MRIWork10/pv/<user_folder>/Old/ /MRIArchive/MRIWork10/pv/<user_folder>/Old.tar.gz
- check the Backup Report files thus created in
/tmp/Backup_Report-XXXXXXXXXX/
to check if you have successfully retrieved your backed up data.
- Please do not forget to remove your original folder. It would not work if you delete it from the GUI, it will just go and sit in the Trash. Use
rm -r
command for the removal of the directory. Be careful, this above process is non-reversible. Please double check if you have got the backup file properly. One simple way to do this is to check the size of the backup file with thedu
command.
For example:
du -sh /MRIArchive/MRIWork10/pv/<user_folder>/Old.tar.gz
Once you are confident remove the folder like:
rm -r /MRIWork/MRIWork10/pv/<user_folder>/Old/
- change directory to where you want to retrieve your backup. Use the
tar xzf
command to extract it.
For example:
cd /MRIWork/MRI-Scratch
tar xzf /MRIArchive/MRIWork10/pv/<user_folder>/Old.tar.gz