The following example restores a file, MyFile.txt
, which resides in your home directory, from the Storage Checkpoint CKPT1
to the device /dev/vx/dsk/dg1/vol-01
. The mount point for the device is /home
.
To restore a file from a Storage Checkpoint
CKPT1
of /home
.$ fckptadm create CKPT1 /home
CKPT1
on the directory /home/checkpoints/mar_4
.$ mount -F vxfs -o ckpt=CKPT1 /dev/vx/dsk/dg1/vol- \ 01:CKPT1 /home/checkpoints/mar_4
MyFile.txt
from your home directory.$ cd /home/users/me $ rm MyFile.txt
/home/checkpoints/mar_4/users/me
directory, which contains the image of your home directory.$ cd /home/checkpoints/mar_4/users/me $ ls -l -rw-r--r-- 1 me staff 14910 Mar 4 17:09 MyFile.txt
MyFile.txt
to your home directory.$ cp MyFile.txt /home/users/me $ cd /home/users/me $ ls -l -rw-r--r-- 1 me staff 14910 Mar 4 18:21 MyFile.txt
The following example restores a file system from the Storage Checkpoint CKPT3
. The filesets listed before the restoration show an unnamed root fileset and six Storage Checkpoints.
To restore a file system from a Storage Checkpoint
# fsckpt_restore -l /dev/vx/dsk/dg1/vol2 /dev/vx/dsk/dg1/vol2: UNNAMED: ctime = Thu 08 May 2004 06:28:26 PM PST mtime = Thu 08 May 2004 06:28:26 PM PST flags = largefiles, file system root CKPT6: ctime = Thu 08 May 2004 06:28:35 PM PST mtime = Thu 08 May 2004 06:28:35 PM PST flags = largefiles CKPT5: ctime = Thu 08 May 2004 06:28:34 PM PST mtime = Thu 08 May 2004 06:28:34 PM PST flags = largefiles, nomount CKPT4: ctime = Thu 08 May 2004 06:28:33 PM PST mtime = Thu 08 May 2004 06:28:33 PM PST flags = largefiles CKPT3: ctime = Thu 08 May 2004 06:28:36 PM PST mtime = Thu 08 May 2004 06:28:36 PM PST flags = largefiles CKPT2: ctime = Thu 08 May 2004 06:28:30 PM PST mtime = Thu 08 May 2004 06:28:30 PM PST flags = largefiles CKPT1: ctime = Thu 08 May 2004 06:28:29 PM PST mtime = Thu 08 May 2004 06:28:29 PM PST flags = nodata, largefiles
CKPT3
as the new root fileset:Select Storage Checkpoint for restore operation or <Control/D> (EOF) to exit or <Return> to list Storage Checkpoints: CKPT3 CKPT3: ctime = Thu 08 May 2004 06:28:31 PM PST mtime = Thu 08 May 2004 06:28:36 PM PST flags = largefiles UX:vxfs fsckpt_restore: WARNING: V-3-24640: Any file system changes or Storage Checkpoints made after Thu 08 May 2004 06:28:31 PM PST will be lost.
CKPT3
: Restore the file system from Storage Checkpoint CKPT3 ?
(ynq) y
(Yes)
UX:vxfs fsckpt_restore: INFO: V-3-23760: File system
restored from CKPT3
If the filesets are listed at this point, it shows that the former UNNAMED root fileset and CKPT6
, CKPT5
, and CKPT4
were removed, and that CKPT3
is now the primary fileset. CKPT3
is now the fileset that will be mounted by default.
# fsckpt_restore -l /dev/vx/dsk/dg1/vol2 /dev/vx/dsk/dg1/vol2: CKPT3: ctime = Thu 08 May 2004 06:28:31 PM PST mtime = Thu 08 May 2004 06:28:36 PM PST flags = largefiles, file system root CKPT2: ctime = Thu 08 May 2004 06:28:30 PM PST mtime = Thu 08 May 2004 06:28:30 PM PST flags = largefiles CKPT1: ctime = Thu 08 May 2004 06:28:29 PM PST mtime = Thu 08 May 2004 06:28:29 PM PST flags = nodata, largefiles Select Storage Checkpoint for restore operation or <Control/D> (EOF) to exit or <Return> to list Storage Checkpoints: