lvcreate -L 512M -n sh-test TVG
mkfs.ext3 /dev/TVG/sh-test
[publiczny] path = /mnt/test read only = no vfs objects = shadow_copy force create mode = 666 force directory mode = 777
#!/bin/bash SNAPSHOT=`date +%Y.%m.%d-%H.%M.%S` lvcreate -L 64M -s -n $SNAPSHOT /dev/TVG/sh-test mkdir /mnt/test/@GMT-$SNAPSHOT mount /dev/TVG/$SNAPSHOT /mnt/test/@GMT-$SNAPSHOT -o ro
#!/bin/bash SNAPSHOT=`date +%Y.%m.%d-%H.%M.%S` lvcreate -L 64M -s -n $SNAPSHOT /dev/TVG/sh-test mkdir /mnt/test/@GMT-$SNAPSHOT xfs_freeze -f /data/shadow_share/ mount /dev/TVG/$SNAPSHOT /mnt/test/@GMT-$SNAPSHOT -o ro,nouuid xfs_freeze -u /data/shadow_share/
Dla shadow_copy istotna jest nazwa katalogu, na przykład:
@GMT-2009.10.25-00.51.03