First Release
- CSet as Current
- Mark as completed
- Delete
- Over 13 years overdue
- Last activity in over 13 years ago
Alpha
Release Details
1) Install ZFS on your 'nix box (presumably you already have this, which is the reason you'd want GZU in the first place)
2) Install Gosu on your 'nix box at /etc/gosu/0.8 (I need to find a better solution to this -- not sure the standard)
3) Unpack the included zip here: /etc/gosu/programs (It will make it's own directory, GosuZfsUtility)
4) Make the GZU-runnable executable:
cd /etc/gosu/programs/GosuZfsUtility/bin
sudo chmod +x GosuZfsRunner.gsp
5) Place this line in your SUDO-cron:
01 01 * * * sudo /etc/gosu/programs/GosuZfsUtility/bin/GosuZfsRunner.gsp -volume_name the-name-of-your-ZFS-volume
Now, every night at 01:01, the utility will run and determine precisely what type of snapshot it should take today (daily, weekly, monthly, yearly) and then take it. It will then do clean-up maintenance, determining if (based on the type of snapshot it took) there are old snapshots it should destroy for you. It's all pretty quick b/c the concept of ZFS snapshots is such that even an annual is made in about 1 second. Destruction amounts to something similar to delete, so it is equally quick. The longest thing is waiting for Gosu and my utility to spin-up (compile) which takes just a few seconds at most. The whole thing runs in about 5 seconds.
Everything is set by defaults (except the volume-name). Defaults include: take weekly snapshots every Friday, take monthlies on the first day of the month, annuals on Dec. 31. By default, it keeps the 6 most recent dailies, 3 most recent weeklies, 11 most recent monthlies, and 3 most recent annuals. These can all be overridden via additional-arguments, such as: -archive_day_of_weekly_maintenance Saturday
If you are on a *nix-client, or using a ZFS-variant, where the command-structure is slightly different, there are even arguments to modify that. For example, under Ubuntu and the ZFS I'm using, this command lists all snapshots: "sudo zfs list -t all" but via arguments could easily be changed to "superZfs snapshots show".
- GZU_build31DEC2010a.zip (10 KB - 2011-01-04)
Tickets
0% Completed
0
Open
0
Closed
0
Total
Reports & Metrics
Hours
Worked
0.0
Remaining
0.0
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Gosuzfsutility is powered by Assembla.