home-brew solution for ZFS snapshot replication and rotation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
768 B

  1. # required format:
  3. # dataset [user@host:]dataset number backup or sync Y or N
  4. # we are securing this elsewhere; if we are using this method, we'll need to configure the target host
  5. # 'user' needs an authorized and restricted public key for SSH access and sudoer rights on 'remotehost' to execute the following as root:
  6. # /usr/sbin/zfs recv -Feuv datapool/backup, /usr/sbin/zfs destroy -r datapool/backup/*
  7. data/home user@remotehost:datapool/backup 7 backup Y
  8. # this goes to another pool on this host so no further configuration is necessary
  9. data/config backup/data 5 backup Y
  10. # we no longer back this up
  11. data/volatile backup/data 2 backup N
  12. # we only sync this one
  13. data/replica remote/dump 31 sync Y