Listing 3 snap script
#! /bin/bash
# Get rid of any existing snapshots and unmount any associated filesystems
umount /extra/root
umount /extra/usr
umount /extra/var
umount /extra/home
fssnap -d /
fssnap -d /usr
fssnap -d /var
fssnap -d /export/home
rm /extra/snapshots/*
# Create new snapshots of /, /usr, /var, and /export/home and mount
# them on /extra
mount -o ro `fssnap -o bs=/extra/snapshots /` /extra/root
mount -o ro `fssnap -o bs=/extra/snapshots /usr` /extra/usr
mount -o ro `fssnap -o bs=/extra/snapshots /var` /extra/var
mount -o ro `fssnap -o bs=/extra/snapshots /export/home` /extra/home
|