{"id":62,"date":"2010-01-20T10:06:05","date_gmt":"2010-01-20T10:06:05","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/un\/setting-up-automated-zfs-snapshots-on-freebsd\/"},"modified":"2010-01-21T17:16:07","modified_gmt":"2010-01-21T17:16:07","slug":"setting-up-automated-zfs-snapshots-on-freebsd","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/un\/setting-up-automated-zfs-snapshots-on-freebsd\/","title":{"rendered":"Setting up automated ZFS snapshots on FreeBSD"},"content":{"rendered":"<p>Using the port <a href=\"http:\/\/marcin.studio4plus.com\/en\/zfs-file-history\/howto.html\">sysutils\/zfs-snapshot-mgmt<\/a>.<\/p>\n<p>The make is taking a while, because it had to pull in Ruby. Luckily, my new FreeBSD machine has a whopping 160 GB hard drive. No worries. However, I wonder if I should&#8217;ve used the alternative. Just didn&#8217;t want to install something that doesn&#8217;t register with the FreeBSD packages\/ports.<\/p>\n<p>Initially left the default \/usr\/local\/etc\/zfs-snapshot-mgmt.conf file except edited it to have <code>tank\/Users<\/code> and <code>tank<\/code> as the filesystems to snapshot. However, the latter was giving a <code>NoMethod<\/code> Ruby exception so I commented it out. Things are looking good:<\/p>\n<code><br \/>\nNAME                                                USED  AVAIL  REFER  MOUNTPOINT<br \/>\ntank\/Users@auto-2010-01-20_07.30                       0      &#8211;  30.0K  &#8211;<br \/>\ntank\/Users\/Wife@auto-2010-01-20_07.30                  0      &#8211;  30.6K  &#8211;<br \/>\ntank\/Users\/Wife\/Documents@auto-2010-01-20_07.30        0      &#8211;  39.0M  &#8211;<br \/>\ntank\/Users\/Wife\/Music@auto-2010-01-20_07.30            0      &#8211;  1.55G  &#8211;<br \/>\ntank\/Users\/Wife\/Pictures@auto-2010-01-20_07.30         0      &#8211;  3.84G  &#8211;<br \/>\ntank\/Users\/Wife\/Videos@auto-2010-01-20_07.30           0      &#8211;  24.0K  &#8211;<br \/>\ntank\/Users\/Poojan@auto-2010-01-20_07.30                0      &#8211;  30.6K  &#8211;<br \/>\ntank\/Users\/Poojan\/Documents@auto-2010-01-20_07.30  1.02M      &#8211;  2.35G  &#8211;<br \/>\ntank\/Users\/Poojan\/Music@auto-2010-01-20_07.30          0      &#8211;  36.5G  &#8211;<br \/>\ntank\/Users\/Poojan\/Pictures@auto-2010-01-20_07.30       0      &#8211;  24.0K  &#8211;<br \/>\ntank\/Users\/Poojan\/Videos@auto-2010-01-20_07.30         0      &#8211;   310M  &#8211;<br \/>\ntank\/Users\/Public@auto-2010-01-20_07.30                0      &#8211;  30.6K  &#8211;<br \/>\ntank\/Users\/Public\/Documents@auto-2010-01-20_07.30      0      &#8211;  50.6K  &#8211;<br \/>\ntank\/Users\/Public\/Music@auto-2010-01-20_07.30          0      &#8211;  2.61G  &#8211;<br \/>\ntank\/Users\/Public\/Pictures@auto-2010-01-20_07.30       0      &#8211;  6.57G  &#8211;<br \/>\ntank\/Users\/Public\/Videos@auto-2010-01-20_07.30         0      &#8211;   310M  &#8211;<br \/>\n<\/code>\n<div class='wp_likes' id='wp_likes_post-62'><a class='like' href=\"javascript:wp_likes.like(62);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(62);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(62);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Using the port sysutils\/zfs-snapshot-mgmt. The make is taking a while, because it had to pull in Ruby. Luckily, my new FreeBSD machine has a whopping 160 GB hard drive. No worries. However, I wonder if I should&#8217;ve used the alternative. Just didn&#8217;t want to install something that doesn&#8217;t register with the FreeBSD packages\/ports. Initially left [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[16,12,3],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-un","tag-backup","tag-freebsd","tag-zfs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":3,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}