zfs auto snapshot

2018-10-22 :: ( 1 minutes reading )

Having ZFS snapshot saved me once when I acidentally rm -f /home/myuser.

There is a simple package that easily make auto snapshot.

$ sudo apt install zfs-auto-snapshot

This will install the script and the cron job associated with it.

By default it will backup all filesystem and volumes. You can disable the filesystems completely by

$ sudo zfs set com.sun:auto-snapshot=false tank/data-set-name

or only for specific interval

sudo zfs set com.sun:auto-snapshot=true tank/data-set-name
sudo zfs set com.sun:auto-snapshot:monthly=false tank/data-set-name
sudo zfs set com.sun:auto-snapshot:weekly=false tank/data-set-name
sudo zfs set com.sun:auto-snapshot:daily=true tank/data-set-name
sudo zfs set com.sun:auto-snapshot:hourly=false tank/data-set-name
sudo zfs set com.sun:auto-snapshot:frequent=false tank/data-set-name
comments powered by Disqus

Archives

English

  • My Desktop With i3, polybar, conky, and rofi
  • Convert Intellij Live Template to vscode Snippet
  • Why for-range behaves differently depending on the size of the element (A peek into go compiler optimization)
  • Testing go 1.5 cross compilation on raspberry pi
  • osx-push-to-talk App
  • Tracking origin of bugs with git bisect
  • Stubbing Time.Now() in golang
  • My account just got hacked by Romanian (Possibly)
  • berks upload core dump
  • Safely sharing credentials with PGP

Indonesia

  • Ruby Fiber apaan sih ?
  • Scale MongoDB dengan Sharding
  • Telepon murah ke Indonesia dengan voip

Today I Learned

  • Intellij as git diff and mergetool
  • Checksum a File From a URL
  • Global Gitignore File
  • View kubernetes secret
  • Push Only Current Branch
  • Convert PDF to Text Using OCR
  • Checkout Last Branch
  • Replacing Last Command and Execute It
  • Open Last Command in the Editor With Fc
  • Regex for Validating Password
Labs.Yulrizka.com
twitter github feed
    • Left Panel
    • No Panel
    • Right Panel
  • Home
  • EN
  • ID
  • Today I Learned

© Ahmy Yulrizka 2019. Made with hugo source