User Tools

Site Tools


zfs_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zfs_backup [2018/05/17 12:46]
143.169.49.101 created
zfs_backup [2018/05/17 13:10] (current)
143.169.49.101
Line 10: Line 10:
 for more infomation see [[https://​github.com/​zfsnap/​zfsnap/​wiki/​zfSnap]] for more infomation see [[https://​github.com/​zfsnap/​zfsnap/​wiki/​zfSnap]]
 command to do weekly snapshots command to do weekly snapshots
-==== /​etc/​cron.weekly ==== +==== /​etc/​cron.weekly/​zfsnapshots ​====
-**zfsnapshots**+
 <​code>​ <​code>​
 #!/bin/bash #!/bin/bash
Line 21: Line 20:
 -r -> recursive -r -> recursive
  
 +==== /​etc/​cron.montly/​zfsnapshots ====
  
 +
 +<​code>​
 +#!/bin/bash
 +
 +/​usr/​sbin/​zfSnap ​ -s -S -a 12m -r data/home
 +
 +</​code>​
 +-a -> TTL of 12 months
 +
 +==== /​etc/​cron.daily/​zfsnapshots ====
 +<​code>​
 +#!/bin/bash
 +
 +/​usr/​sbin/​zfSnap ​ -d -r data/home
 +</​code>​
 +-d -> clean up expired snapshots
 +-r -> recursively
 +
 +===== simplesnap =====
 +This tool is used to transfert the snapshots from sto3 to sto4. The command is initiated on sto4, via a secured ssh channel.
 +
 +===== /​etc/​cron.daily/​simplesnap =====
 +<​code>​
 +#!/bin/bash
 +
 +simplesnap --host sto3 --setname sto3 --store data/bck --sshcmd "​ssh"​
 +</​code>​
  
zfs_backup.1526561168.txt.gz · Last modified: 2018/05/17 12:46 by 143.169.49.101