Révision 40 bin/enable-snapshot

enable-snapshot (revision 40)
5 5
DIR_CONF_SNAPSHOT="/opt/gZFS/snapshots/"
6 6
BIN_ZFS_SNAPSHOT="/sbin/zfs-snapshot"
7 7

  
8
# TODO: traduire les msg
8 9

  
9 10
function usage {
10 11
  echo "Usage : $0 options" 1>&2
11 12
  echo "OPTIONS :" 1>&2
12
  echo "  -i : interactive mode, this option is not compatible with others options" 1>&2
13
  echo "  -i : interactive mode, this option is not compatible with other options" 1>&2
13 14
  echo "  -m : minute field for cron snapshot" 1>&2
14
  echo "  -H : hour field for cron snapshots" 1>&2
15
  echo "  -D : Day of Month field for cron snapshots" 1>&2
16
  echo "  -M : Month field for cron snapshots" 1>&2
17
  echo "  -d : Day of week for cron snapshots" 1>&2
18
  echo "  -N : Name of ZFS Volume/FileSystem to snapshots" 1>&2
19
  echo "  -t : Type ZFS Volume or FileSystem. Possible value : volume or filesystem" 1>&2
20
  echo "  -k : Number of snapsot to keep" 1>&2
15
  echo "  -H : hour field for cron snapshot" 1>&2
16
  echo "  -D : Day of Month field for cron snapshot" 1>&2
17
  echo "  -M : Month field for cron snapshot" 1>&2
18
  echo "  -d : Day of week for cron snapshot" 1>&2
19
  echo "  -N : Name of ZFS Volume/FileSystem to snapshot" 1>&2
20
  echo "  -t : Type (Possible values: volume or filesystem)" 1>&2
21
  echo "  -k : Number of snapshot to keep" 1>&2
21 22
}
22 23

  
23 24
function checkField4Cron {

Formats disponibles : Unified diff