Révision 40 bin/enable-replica

enable-replica (revision 40)
5 5
DIR_CRON="/etc/cron.d/"
6 6
BIN_ZFS_REPLICA="/sbin/zfs-replica"
7 7

  
8
# TODO: traduire les msg
9

  
8 10
function usage {
9 11
  echo "USAGE :"
10 12
  echo "$0 -o volume_fs_to_replicate -r volume_fs_destination -n number_replicas_to_keep -m minute_cron -H hour_cron -D Day_of_Month_cron -M month_cron -d day_of_week_cron [-s server destination]" 1>&2
......
15 17
  echo "  -o : origin volume or a filesystem to replicate" 1>&2
16 18
  echo "  -r : volume or filesystem replicated" 1>&2
17 19
  echo "  -n : number replicas to keep" 1>&2
18
  echo "  -s : if the replica destination is on a another zfs server, so you need to specify this option with the name of server." 1>&2
19
  echo "      The remote replication use ssh. So please, generate a ssh private/public key and the public key in /root/.ssh/authorized_key" 1>&2
20
  echo "      on the remote server" 1>&2
20
  echo "  -s : if replica destination is on another zfs server, you need to specify this option with the name of server." 1>&2
21
  echo "      Warning ! Remote replication use ssh. So please, generate a ssh private/public key and the public key in /root/.ssh/authorized_key" 1>&2
22
  echo "      on remote server" 1>&2
21 23
  echo "  -m : minute field for cron replication" 1>&2
22 24
  echo "  -H : hour field for cron replication" 1>&2
23 25
  echo "  -D : Day of Month field for cron replication" 1>&2

Formats disponibles : Unified diff