IBM Support

Creating a filesystem snapshot and backup it up

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

[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.3;6.1;7.1","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
17 June 2018

UID

isg3T1023511