zfs-ubuntu/.git
5 years agoMake logdir if it doesn't exist
Alan J. Pippin [Mon, 11 Feb 2019 02:33:37 +0000 (19:33 -0700)]
Make logdir if it doesn't exist

Change-Id: Idbfba60f25c6930984a1d5c48ef0223d58cb3638

6 years agoRe-import pool before checking for scrub errors
Alan J. Pippin [Wed, 12 Dec 2018 20:00:16 +0000 (13:00 -0700)]
Re-import pool before checking for scrub errors

Change-Id: Icce2734ea3b32e341e8579fc9e75dd8ecd216844

7 years agoOnly export the pool after scrubbing it if it is still imported
Alan J. Pippin [Sun, 3 Dec 2017 05:43:41 +0000 (22:43 -0700)]
Only export the pool after scrubbing it if it is still imported

Change-Id: I43210627fd78e3bfc62c8d6cf841b85c35673bf0

7 years agoFixed bug in searching for zfs-scrub to avoid export after backup
Alan J. Pippin [Sat, 4 Nov 2017 19:51:33 +0000 (13:51 -0600)]
Fixed bug in searching for zfs-scrub to avoid export after backup

Change-Id: Iab159bb8d4117cb277e83da37433a375fcb9c7a4

8 years agoMerge branch 'master' of ssh://gerrit.cobaldwins.net:29418/zfs/zfs-snapshot
Alan J. Pippin [Tue, 16 Feb 2016 21:44:24 +0000 (14:44 -0700)]
Merge branch 'master' of ssh://gerrit.cobaldwins.net:29418/zfs/zfs-snapshot

8 years agoMerge all the work Alan's done for the past 8 years
Carl Baldwin [Tue, 16 Feb 2016 19:51:49 +0000 (12:51 -0700)]
Merge all the work Alan's done for the past 8 years

Conflicts:
zfs-replicate

Change-Id: I79a54bccf63ee4383045240c6b72b8bff6313f0d

8 years agoMerge all the work Alan's done for the past 8 years gerrit/master origin/HEAD origin/master
Carl Baldwin [Tue, 16 Feb 2016 19:51:49 +0000 (12:51 -0700)]
Merge all the work Alan's done for the past 8 years

Conflicts:
zfs-replicate

Change-Id: I79a54bccf63ee4383045240c6b72b8bff6313f0d

8 years agoAdd the git review file
Carl Baldwin [Tue, 16 Feb 2016 19:29:34 +0000 (12:29 -0700)]
Add the git review file

Change-Id: Ie386d097da519a442bf456c7891794c93e229173

10 years agoConsolidated zfs send and recv operations into replicate function gerrit/ubuntu origin/ubuntu
Alan J. Pippin [Wed, 19 Mar 2014 16:47:25 +0000 (10:47 -0600)]
Consolidated zfs send and recv operations into replicate function
Fixed bug in fatal_and_exit removing previous backup marker,
when it should have just been removing the current backup markers.

10 years agoFixed bug in running throttle command on remote machine instead of local
Alan J. Pippin [Wed, 19 Mar 2014 02:28:15 +0000 (20:28 -0600)]
Fixed bug in running throttle command on remote machine instead of local

10 years agoTweaked comment in last commit
Alan J. Pippin [Thu, 13 Mar 2014 13:53:48 +0000 (07:53 -0600)]
Tweaked comment in last commit

10 years agoAdded check to not export pools if zfs-replicate or zfs-scrub process is running
Alan J. Pippin [Thu, 13 Mar 2014 13:48:58 +0000 (07:48 -0600)]
Added check to not export pools if zfs-replicate or zfs-scrub process is running

10 years agoFixed typo in error message email
Alan J. Pippin [Mon, 10 Mar 2014 16:58:15 +0000 (10:58 -0600)]
Fixed typo in error message email

10 years agoAdded hostname to error messages that are emailed
Alan J. Pippin [Fri, 7 Mar 2014 00:31:07 +0000 (17:31 -0700)]
Added hostname to error messages that are emailed

10 years agoAdded fatal_and_exit routine so email will be sent on error
Alan J. Pippin [Thu, 6 Mar 2014 01:10:06 +0000 (18:10 -0700)]
Added fatal_and_exit routine so email will be sent on error

11 years agoFixed bugs related to import/export backup pool feature.
Alan J. Pippin [Thu, 17 Jan 2013 02:26:55 +0000 (19:26 -0700)]
Fixed bugs related to import/export backup pool feature.

12 years agoChanges to support mounting backup pool under linux zfs
Alan J. Pippin [Sat, 22 Dec 2012 17:38:04 +0000 (10:38 -0700)]
Changes to support mounting backup pool under linux zfs

12 years agoMajor changes from nexenta versions to support running under unbuntu.
Alan J. Pippin [Fri, 12 Oct 2012 03:26:25 +0000 (21:26 -0600)]
Major changes from nexenta versions to support running under unbuntu.
Added ability to replicate from local pool to local backup pool.
Added new option to all import/export of backup pool prior/after replication.

12 years agoAdded gitignore to ignore local zfs-scripts.conf file
Alan J. Pippin [Thu, 11 Oct 2012 03:09:44 +0000 (21:09 -0600)]
Added gitignore to ignore local zfs-scripts.conf file

14 years agoAdded an already running check gerrit/nexenta origin/nexenta
Alan J. Pippin [Sat, 9 Oct 2010 14:31:02 +0000 (08:31 -0600)]
Added an already running check

14 years agoMerge branch 'master' of ssh://backup.pippins.net/etc/bin/zfs/
Alan J. Pippin [Fri, 29 Jan 2010 17:25:34 +0000 (10:25 -0700)]
Merge branch 'master' of ssh://backup.pippins.net/etc/bin/zfs/

Conflicts:
zfs-replicate

14 years agoAdded throttle option support
Alan J. Pippin [Fri, 29 Jan 2010 05:14:15 +0000 (22:14 -0700)]
Added throttle option support

14 years agoFixed typo in logfile name
Alan J. Pippin [Fri, 29 Jan 2010 04:49:47 +0000 (21:49 -0700)]
Fixed typo in logfile name

14 years agoTweaked some settings in zfs-replicate.
Alan J. Pippin [Fri, 29 Jan 2010 04:43:28 +0000 (21:43 -0700)]
Tweaked some settings in zfs-replicate.
Added BRAND NEW restore scripts to aid in restoring filesystems from backup pool to a destination pool.

15 years agoAdded missing anchor to backup pool name filter
Alan J. Pippin [Thu, 29 Jan 2009 14:39:50 +0000 (07:39 -0700)]
Added missing anchor to backup pool name filter

15 years agoIncreased spin lock cycle time
Alan J. Pippin [Thu, 29 Jan 2009 14:39:38 +0000 (07:39 -0700)]
Increased spin lock cycle time

15 years agoFixed midnight bug in autosnap wrapper script
Alan J. Pippin [Sun, 18 Jan 2009 20:33:02 +0000 (13:33 -0700)]
Fixed midnight bug in autosnap wrapper script

15 years agoChanged default throttle options
Alan J. Pippin [Sat, 17 Jan 2009 23:13:23 +0000 (16:13 -0700)]
Changed default throttle options

15 years agoFixed misnamed throttle opt var
Alan J. Pippin [Sat, 17 Jan 2009 22:43:47 +0000 (15:43 -0700)]
Fixed misnamed throttle opt var

15 years agoSet default throttle enable to 0
Alan J. Pippin [Sat, 17 Jan 2009 22:40:08 +0000 (15:40 -0700)]
Set default throttle enable to 0

15 years agoAdded new throttle option
Alan J. Pippin [Sat, 17 Jan 2009 22:39:51 +0000 (15:39 -0700)]
Added new throttle option

15 years agoFixed typo
Alan J. Pippin [Sat, 17 Jan 2009 07:10:28 +0000 (00:10 -0700)]
Fixed typo

15 years agoAdded code to destroy backup markers on local machine if replicate aborts
Alan J. Pippin [Sat, 17 Jan 2009 04:44:40 +0000 (21:44 -0700)]
Added code to destroy backup markers on local machine if replicate aborts

15 years agoRenamed zfs-replicate wrapper script
Alan J. Pippin [Sat, 17 Jan 2009 04:20:03 +0000 (21:20 -0700)]
Renamed zfs-replicate wrapper script

15 years agoRemoved accidentally added local configuration file from repo
Alan J. Pippin [Sat, 17 Jan 2009 04:13:38 +0000 (21:13 -0700)]
Removed accidentally added local configuration file from repo

15 years agoAdded configuration scripts to hold customized options
Alan J. Pippin [Sat, 17 Jan 2009 04:10:44 +0000 (21:10 -0700)]
Added configuration scripts to hold customized options

15 years agoAdded replicate wrapper logfile.
Alan J. Pippin [Fri, 16 Jan 2009 15:10:07 +0000 (08:10 -0700)]
Added replicate wrapper logfile.
Added concept of "no limit" maxruntime.

15 years agoAdded fatal_and_exit routine to handle all early exits out of the script
Alan J. Pippin [Fri, 16 Jan 2009 14:54:16 +0000 (07:54 -0700)]
Added fatal_and_exit routine to handle all early exits out of the script

15 years agoRemoved old freebsd zfs scripts
Alan J. Pippin [Fri, 16 Jan 2009 07:07:05 +0000 (00:07 -0700)]
Removed old freebsd zfs scripts

15 years agoCreated the zfs-replicate-wrapper script that factors in duration to
Alan J. Pippin [Fri, 16 Jan 2009 06:57:18 +0000 (23:57 -0700)]
Created the zfs-replicate-wrapper script that factors in duration to
stop replicating once duration exceeds a certain amount. Updated
zfs-log-parser to parse the stats from the replicate jobs properly.

15 years agoAdded new destroy on full option
Alan J. Pippin [Fri, 16 Jan 2009 03:43:36 +0000 (20:43 -0700)]
Added new destroy on full option

15 years agoAdded code to fallback to lists of snapshots to find common point
Alan J. Pippin [Wed, 14 Jan 2009 07:17:39 +0000 (00:17 -0700)]
Added code to fallback to lists of snapshots to find common point
if the backup markers can't be found. Fixed various bugs.

15 years agoInitial working draft of the new replicate algorithm using
Alan J. Pippin [Tue, 13 Jan 2009 07:56:18 +0000 (00:56 -0700)]
Initial working draft of the new replicate algorithm using
backup marker snapshots instead of pure snapshot diffs.

15 years agoAdded code to deal with not finding a common snapshot
Alan J. Pippin [Tue, 13 Jan 2009 03:49:21 +0000 (20:49 -0700)]
Added code to deal with not finding a common snapshot

15 years agoAdded logging to zfs-scrub
Alan J. Pippin [Mon, 12 Jan 2009 07:44:01 +0000 (00:44 -0700)]
Added logging to zfs-scrub
Changed zfs-replicate pool name to backups
Fixed snapname bug in zfs-autosnap

15 years agoChanged name of local backup pool
Alan J. Pippin [Mon, 12 Jan 2009 06:41:20 +0000 (23:41 -0700)]
Changed name of local backup pool

15 years agoAdded variable for the name of the local backup pool name
Alan J. Pippin [Mon, 12 Jan 2009 06:23:39 +0000 (23:23 -0700)]
Added variable for the name of the local backup pool name

15 years agoMoved old zfs-replicate scripts out of the way.
Alan J. Pippin [Mon, 12 Jan 2009 06:19:35 +0000 (23:19 -0700)]
Moved old zfs-replicate scripts out of the way.
Copied Carl's new replicate script into place.

15 years agoTest commit
Alan J. Pippin [Mon, 12 Jan 2009 05:44:13 +0000 (22:44 -0700)]
Test commit

15 years agoRemoved import command
Alan J. Pippin [Mon, 12 Jan 2009 05:26:05 +0000 (22:26 -0700)]
Removed import command

15 years agoChanged location of log file
Alan J. Pippin [Sun, 11 Jan 2009 00:29:54 +0000 (17:29 -0700)]
Changed location of log file

15 years agoMerged zfs-scrub scripts together
Alan J. Pippin [Sat, 10 Jan 2009 23:54:19 +0000 (16:54 -0700)]
Merged zfs-scrub scripts together

15 years agoMoved pool names to variable
Alan J. Pippin [Sat, 10 Jan 2009 23:43:26 +0000 (16:43 -0700)]
Moved pool names to variable

15 years agoUpdated paths
Alan J. Pippin [Sat, 10 Jan 2009 23:41:47 +0000 (16:41 -0700)]
Updated paths

15 years agoAdded new script to link the GIT scripts to another location
Alan J. Pippin [Sat, 10 Jan 2009 23:34:55 +0000 (16:34 -0700)]
Added new script to link the GIT scripts to another location
Picked up bug fixes from Carl for zfs-autosnap

15 years agoNot needed for Nexenta
Super-User [Sat, 10 Jan 2009 23:20:38 +0000 (16:20 -0700)]
Not needed for Nexenta

16 years agoRenamed all references from USB to EXT gerrit/freebsd origin/freebsd
Alan J. Pippin [Thu, 25 Sep 2008 21:36:36 +0000 (15:36 -0600)]
Renamed all references from USB to EXT

16 years agoFixed zfs-replicate bug when a filesystem is created on the backup drive,
Alan J. Pippin [Thu, 25 Sep 2008 15:26:00 +0000 (09:26 -0600)]
Fixed zfs-replicate bug when a filesystem is created on the backup drive,
and the snapshots for that filesystem are all deleted over time, and new
ones are attempted to be sent to the backup drive. In this case, the script
was trying to send incremental, but there were no snapshots left on the
zfs filesystem. Now, if a filesystem exists on the backup drive but it
has no snapshots, that filesystem is removed so a full stream will be sent
of the first snapshot that is synced to the backup drive.

16 years agoChanged cleanup() trap to be based on INT signal instead of EXIT
Alan J. Pippin [Fri, 22 Aug 2008 13:34:29 +0000 (07:34 -0600)]
Changed cleanup() trap to be based on INT signal instead of EXIT
to prevent subsequent script instantiations from affecting the
any that are currently running if they can't obtain the lock
in a timely manner.

16 years agoAdded safegaurds to prevent script from running on top of itself
Alan J. Pippin [Fri, 22 Aug 2008 05:45:36 +0000 (23:45 -0600)]
Added safegaurds to prevent script from running on top of itself

16 years agoAdded support for handling compressed files
Alan J. Pippin [Fri, 22 Aug 2008 03:23:53 +0000 (21:23 -0600)]
Added support for handling compressed files

16 years agoUpdated log file location to dump to /var/log/zfs instead of /var/log
Alan J. Pippin [Fri, 22 Aug 2008 03:16:47 +0000 (21:16 -0600)]
Updated log file location to dump to /var/log/zfs instead of /var/log

16 years agoAdded usage information to the header
Alan J. Pippin [Sun, 20 Apr 2008 16:45:02 +0000 (10:45 -0600)]
Added usage information to the header

16 years agoAdded new script modified from the FreeBSD release to avoid kernel panics.
Alan J. Pippin [Sun, 20 Apr 2008 14:10:27 +0000 (08:10 -0600)]
Added new script modified from the FreeBSD release to avoid kernel panics.

16 years agoFixed a race condition that could lead to 2 scrubs running simultaneously.
Alan J. Pippin [Tue, 18 Mar 2008 02:03:10 +0000 (20:03 -0600)]
Fixed a race condition that could lead to 2 scrubs running simultaneously.
Added logging support.

16 years agoAdded date filter capability when parsing snapshot total logs.
Alan J. Pippin [Fri, 14 Mar 2008 19:34:06 +0000 (13:34 -0600)]
Added date filter capability when parsing snapshot total logs.

16 years agoFixed bug when parsing filesystems that have no data on a given date.
Alan J. Pippin [Wed, 12 Mar 2008 16:14:46 +0000 (10:14 -0600)]
Fixed bug when parsing filesystems that have no data on a given date.

16 years agoFixed bug in parsing snapshot total logs
Alan J. Pippin [Tue, 11 Mar 2008 02:25:23 +0000 (20:25 -0600)]
Fixed bug in parsing snapshot total logs

16 years agoUpdated to contain daily snapshot code
Alan J. Pippin [Tue, 11 Mar 2008 02:20:35 +0000 (20:20 -0600)]
Updated to contain daily snapshot code

16 years agoAdded new script to scrub a USB backup drive
Alan J. Pippin [Tue, 11 Mar 2008 02:16:09 +0000 (20:16 -0600)]
Added new script to scrub a USB backup drive

16 years agoAdded code to poweron the destpool and import it.
Alan J. Pippin [Sat, 8 Mar 2008 16:26:08 +0000 (09:26 -0700)]
Added code to poweron the destpool and import it.
Added code to export the destpool and power it down.

16 years agoI decided to change the name of the example script again.
Alan J. Pippin [Sat, 8 Mar 2008 06:04:56 +0000 (23:04 -0700)]
I decided to change the name of the example script again.

16 years agoAdded script that can be used to diff files between different snapshots.
Alan J. Pippin [Sat, 8 Mar 2008 05:47:24 +0000 (22:47 -0700)]
Added script that can be used to diff files between different snapshots.

16 years agoMade the all scripts examples, allowing local copies
Alan J. Pippin [Sat, 8 Mar 2008 05:46:50 +0000 (22:46 -0700)]
Made the all scripts examples, allowing local copies
to be created by the other users that aren't tracked by GIT.

16 years agoAdded ability to deal with negative data values.
Alan J. Pippin [Tue, 4 Mar 2008 02:59:05 +0000 (19:59 -0700)]
Added ability to deal with negative data values.

16 years agoAdded total data count for each date
Alan J. Pippin [Mon, 3 Mar 2008 15:09:49 +0000 (08:09 -0700)]
Added total data count for each date

16 years agoAdded ability to parse snapshot total log files.
Alan J. Pippin [Mon, 3 Mar 2008 15:02:25 +0000 (08:02 -0700)]
Added ability to parse snapshot total log files.

16 years agoChanged precision of gigabyte sizes to be xx.xx.
Alan J. Pippin [Mon, 3 Mar 2008 14:14:00 +0000 (07:14 -0700)]
Changed precision of gigabyte sizes to be xx.xx.
Made column width of filesystem dynamically sized.

16 years agoMade a simple wrapper script to dump the output to a log file.
Alan J. Pippin [Sun, 2 Mar 2008 15:18:06 +0000 (08:18 -0700)]
Made a simple wrapper script to dump the output to a log file.

16 years agoIncreased width of zfs filesystem column. Output sorted by filesystem now.
Alan J. Pippin [Sun, 2 Mar 2008 15:17:38 +0000 (08:17 -0700)]
Increased width of zfs filesystem column. Output sorted by filesystem now.

16 years agoInitial commit/revision of a number of ZFS scripts and utilities.
Alan J. Pippin [Sat, 1 Mar 2008 17:31:26 +0000 (10:31 -0700)]
Initial commit/revision of a number of ZFS scripts and utilities.

16 years agoThis script handled my initial snapshots on a single host.
Carl N. Baldwin [Thu, 21 Feb 2008 00:29:29 +0000 (17:29 -0700)]
This script handled my initial snapshots on a single host.

16 years agoAlan's additions
Carl N. Baldwin [Sun, 10 Feb 2008 03:34:16 +0000 (20:34 -0700)]
Alan's additions

16 years agoMy original snapshot script
Carl N. Baldwin [Sun, 10 Feb 2008 03:33:33 +0000 (20:33 -0700)]
My original snapshot script