Question & Answer
Question
How do I setup a filesystem snapshot and back it up
Answer
# snapshot -o snapfrom=/original_fs -o size=--
It will create a new snapshot logical volume (eg: fslv01).
To mount the new snapshot:
# mount -o snapshot /dev/fslv01 /mysnap
Note: the directory /mysnap, should be exist before ssuing
The mount command.
- To backup the snapshot:
# cd /mysnap
# find . | backup -iqvf backup_device
- To create snapshot and back it up in one operation:
# backsnap -m /mysnap -s size=1G -i -f backup_device /original_fs
- To delete the snapshot logical volume:
# umount /mysnap -----> if mounted
# snapshot -d /dev/fslv01 (snapshot logical volume)
Thank you very much for taking the time to read through this guide.
I hope it has been not only helpful but an easy read. If you feel you have found any inconsistencies,
Please don’t hesitate to email me at ahdmashr@eg.ibm.com
Ahmed Mashhour
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
isg3T1023511