探索 AIX 6:AIX 6 中的 JFS2 文件系统快照(Snapshot)功能入门与使用技巧
2008-11-10 08:27:06 来源:WEB开发网# backsnap -n snapshotback -f/tmp/test.bak /tmp/test
Snapshot for file system /tmp/test created on snapshotback
backup: Date of this level 9 backup: Fri Jan 4 21:19:43 2008
backup: Date of last level 0 backup: the epoch
backup: Backing up /tmp/test/.snapshot/snapshotback (/tmp/test) to /tmp/test.bak
backup: File system still mounted, inconsistent data possible
backup: Mapping (Pass I) [regular files]
backup: Mapping (Pass II) [directories]
backup: estimated 49 1k blocks.
backup: Backing up (Pass III) [directories]
backup: Backing up (Pass IV) [regular files]
backup: 52 1k blocks on 1 volume(s)
backup: Backup is complete
#
外置快照的备份
我们先创建一个快照,将根分区备份到 /tmp/root.bak, 加上 -R 参数备份后删除快照。使用外置快照备份,我们需要指定外置快照 LV 的大小和挂载位置,分别用 -m 和 -s 来制定。-f 参数定义同内置快照。
# backsnap -R -m /mnt -s size=32M -f /tmp/root.bak /
Snapshot for file system / created on /dev/fslv05
backup: Date of this level 9 backup: Fri Jan 4 21:23:01 2008
backup: Date of last level 0 backup: the epoch
backup: Backing up /dev/rfslv05 to /tmp/root.bak
backup: Mapping (Pass I) [regular files]
backup: Mapping (Pass II) [directories]
backup: estimated 128315 1k blocks.
backup: Backing up (Pass III) [directories]
backup: Backing up (Pass IV) [regular files]
backup: 127982 1k blocks on 1 volume(s)
backup: Backup is complete
rmlv: Logical volume fslv04 is removed.
rmlv: Logical volume fslv05 is removed.
#
更多精彩
赞助商链接