Re: [OpenIndiana-discuss] Current ZFS Backup projects (OpenIndiana-discuss Digest, Vol 26, Issue 34) (OpenIndiana-discuss Digest, Vol 26, Issue 39)

2012-09-14 Thread Ong Yu-Phing
Yes, there are two slightly different goals in terms of backup, (1) to 
backup ZFS based CIFS servers (2) to backup non-ZFS based servers.  For 
(1) I've been trying to use tools like zetaback, warmer, etc.  For (2) 
I've been using good-ol' backuppc.


I'm quite glad this thread started, because lo and behold we now have 
zrep pointed out by Frank (written by Philip Brown, according to the 
website), which looks exactly like what I'm interested in for (1), and 
mdbackup from Julius, which looks like I could use for (2), although I 
might still stay with backuppc as my staff are quite familiar with this.


So thanks all for your valuable inputs!

Phing

On 13/09/2012 17:23, Jim Klimov wrote:

2012-09-12 6:05, Ong Yu-Phing ?:

Jim, I assume you are referring to this:
http://wiki.openindiana.org/oi/rsync+daemon+service+on+OpenIndiana, 
thanks!


Yes, I think that's it ;)


My concern is that typically rsync will take quite a while to traverse a
large set of files before sending only changed files; a classic example
is backing up say 1TB of maildir emails, it may take 4+ hours, and you
now have to deal with a situation where your midnight backup is really a
somewhere between midnight and 4am backup.  And of course, if you want
to take snapshots/backups of comstar volumes, rsync isn't quite the
right fit.

On the other hand, a zfs snapshot gives an almost-at-the-time backup
(give or take a few seconds), versus the aforementioned rsync. The zfs
snapshot can then be sent off-site, independent of the backup activity.


I got an impression that you needed to backup some client machines
with varied OSes, such as Windows or Linux desktops, onto a ZFS server.
In that case rsync should help, although you're right that it would
take long to scan the directory trees for changes.

With client FSes that support snapshots (ZFS, NTFS shadow copy) you
might have some luck making scripts that take the client's snapshot,
hold it (in case of ZFS, to avoid it being destroyed while you're
working), rsync the changes from the snapshot (so the 0am backup is
really the state at 0am) and release/destroy the snapshot on client.
In case of ZFS at least, you might have some optimization by using
zfs diff to determine changed files between two snapshots on the
client - but then you should not destroy rsynced snapshots right
away, but keep a backlog of one or two at least. And you should have
some locking to prevent several instances of the backup job crawling
the same client space and bringing IOPS to a halt.

Now, before you ask why not zfs-send client snapshots directly? -
there may be reasons, such as incompatible ZFS versions on client
and server, differing dataset layouts, flaky network preventing
transfer of large zfs-send streams (though that should have been
addressed with resumable zfs-send feature, if that was integrated).

HTH,
//Jim Klimov







___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-13 Thread Jim Klimov

2012-09-12 3:52, Julius Roberts wrote:

As for releasing it into the
wild I'm happy do do that, but there are no appropriate licensing
statements in any if the files nor have I considered what licence to even
use. I was thinking of pushing the code to a slave svn instance from which
the public can sync if they like.  Pretty busy right now though :) oh it's
all documented too.


Judging from my small experience with a few projects, you
can get free SVN/tarball/wiki hosting on sourceforge.net.
If you want to just release the code and don't care who or
how uses it and don't require that you get feedbacks and
improvements, you can consider some variants of the BSD
license.

HTH,
//Jim Klimov

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects (OpenIndiana-discuss Digest, Vol 26, Issue 34)

2012-09-13 Thread Jim Klimov

2012-09-12 6:05, Ong Yu-Phing пишет:

Jim, I assume you are referring to this:
http://wiki.openindiana.org/oi/rsync+daemon+service+on+OpenIndiana, thanks!


Yes, I think that's it ;)


My concern is that typically rsync will take quite a while to traverse a
large set of files before sending only changed files; a classic example
is backing up say 1TB of maildir emails, it may take 4+ hours, and you
now have to deal with a situation where your midnight backup is really a
somewhere between midnight and 4am backup.  And of course, if you want
to take snapshots/backups of comstar volumes, rsync isn't quite the
right fit.

On the other hand, a zfs snapshot gives an almost-at-the-time backup
(give or take a few seconds), versus the aforementioned rsync.  The zfs
snapshot can then be sent off-site, independent of the backup activity.


I got an impression that you needed to backup some client machines
with varied OSes, such as Windows or Linux desktops, onto a ZFS server.
In that case rsync should help, although you're right that it would
take long to scan the directory trees for changes.

With client FSes that support snapshots (ZFS, NTFS shadow copy) you
might have some luck making scripts that take the client's snapshot,
hold it (in case of ZFS, to avoid it being destroyed while you're
working), rsync the changes from the snapshot (so the 0am backup is
really the state at 0am) and release/destroy the snapshot on client.
In case of ZFS at least, you might have some optimization by using
zfs diff to determine changed files between two snapshots on the
client - but then you should not destroy rsynced snapshots right
away, but keep a backlog of one or two at least. And you should have
some locking to prevent several instances of the backup job crawling
the same client space and bringing IOPS to a halt.

Now, before you ask why not zfs-send client snapshots directly? -
there may be reasons, such as incompatible ZFS versions on client
and server, differing dataset layouts, flaky network preventing
transfer of large zfs-send streams (though that should have been
addressed with resumable zfs-send feature, if that was integrated).

HTH,
//Jim Klimov


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-13 Thread Christopher X. Candreva
On Wed, 12 Sep 2012, Julius Roberts wrote:

 mdbackup and I manage it all using subversion. As for releasing it into the
 wild I'm happy do do that, but there are no appropriate licensing
 statements in any if the files nor have I considered what licence to even
 use. I was thinking of pushing the code to a slave svn instance from which
 the public can sync if they like.  Pretty busy right now though :) oh it's

Github is great for that sort of thing.


==
Chris Candreva  -- ch...@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-12 Thread Michael Zandstra

Is zfs send and zfs recv not an option?
http://docs.oracle.com/cd/E19963-01/html/821-1448/gbchx.html#gbinw
(Sending a ZFS Snapshot)

From Nexenta course I once followed; Snapshot early, snapshot often. 
It's better to do snapshots every 5 minutes and send that differential 
snapshot to a second machine with zfs send/recv, than to use other means 
of backing up live systems.


Op 11-9-2012 19:47, Jim Klimov schreef:

2012-09-11 18:56, Mark Creamer wrote:

A recent thread caused me to look for open source projects that leverage
ZFS to backup systems. I found a couple, such as OmniTI's
Zetabackhttp://labs.omniti.com/labs/zetaback,
but that one appears to be dead - at least the links don't work and 
the Git

page shows no recent activity. Nexenta's commercial product for Windows,
Delorean, also appears to have been killed (unfortunately without 
first
being released to the community as far as I can tell). Wondering if 
anyone
knows of any other projects that use scripts or some other method to 
manage
system backups with zfs. I'm hoping to build on the ideas of someone 
more

knowledgeable to automate my snapshot and recovery efforts.



Regarding backup of other OSes to ZFS servers and leveraging ZFS
from there on, I can suggest rsync (or cwrsync in case of Windows
clients). This is easily automatable on clients (push to rsync
server) or on the server (pull from clients), provided that you
set up the security/logins appropriately.

The ZFS-enabled server can take care of snapshotting successful
rsync run results, deduplication if appropriately spec'ed, etc.

I posted an enhanced SMF script and config file snippets on OI
wiki to run the rsync server and take ZFS auto-snapshots after
successful completion of incoming rsync sessions (push mode);
it is even more trivial in pull mode initiated by the server -
it can mkdir .../.zfs/snapshot/$SNAPNAME given the proper
access via zfs allow).

HTH,
//Jim Klimov

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-12 Thread Lucas Van Tol

I also go with rsync for other OS - ZFS; you can also use ssh keys and use the 
forced command behaviour to manage snapshots.
Deltacopy on windows seems to interact nicely in such an environment; or just 
using 'cron' jobs on Linux/Mac clients. 

For ZFS based transfers; I just have cron tasks on a 'backup' server that pull 
down zfs snapshot differentials over SSH.

Not sure about any existing packages; I have puppet managing most of my systems 
and it just distributes necessary SSH keys and cron tasks ...

-Lucas Van Tol

 Date: Wed, 12 Sep 2012 09:20:09 +0200
 From: mich...@zandy.nl
 To: openindiana-discuss@openindiana.org
 Subject: Re: [OpenIndiana-discuss] Current ZFS Backup projects
 
 Is zfs send and zfs recv not an option?
 http://docs.oracle.com/cd/E19963-01/html/821-1448/gbchx.html#gbinw
 (Sending a ZFS Snapshot)
 
  From Nexenta course I once followed; Snapshot early, snapshot often. 
 It's better to do snapshots every 5 minutes and send that differential 
 snapshot to a second machine with zfs send/recv, than to use other means 
 of backing up live systems.
 
 Op 11-9-2012 19:47, Jim Klimov schreef:
  2012-09-11 18:56, Mark Creamer wrote:
  A recent thread caused me to look for open source projects that leverage
  ZFS to backup systems. I found a couple, such as OmniTI's
  Zetabackhttp://labs.omniti.com/labs/zetaback,
  but that one appears to be dead - at least the links don't work and 
  the Git
  page shows no recent activity. Nexenta's commercial product for Windows,
  Delorean, also appears to have been killed (unfortunately without 
  first
  being released to the community as far as I can tell). Wondering if 
  anyone
  knows of any other projects that use scripts or some other method to 
  manage
  system backups with zfs. I'm hoping to build on the ideas of someone 
  more
  knowledgeable to automate my snapshot and recovery efforts.
 
 
  Regarding backup of other OSes to ZFS servers and leveraging ZFS
  from there on, I can suggest rsync (or cwrsync in case of Windows
  clients). This is easily automatable on clients (push to rsync
  server) or on the server (pull from clients), provided that you
  set up the security/logins appropriately.
 
  The ZFS-enabled server can take care of snapshotting successful
  rsync run results, deduplication if appropriately spec'ed, etc.
 
  I posted an enhanced SMF script and config file snippets on OI
  wiki to run the rsync server and take ZFS auto-snapshots after
  successful completion of incoming rsync sessions (push mode);
  it is even more trivial in pull mode initiated by the server -
  it can mkdir .../.zfs/snapshot/$SNAPNAME given the proper
  access via zfs allow).
 
  HTH,
  //Jim Klimov
 
  ___
  OpenIndiana-discuss mailing list
  OpenIndiana-discuss@openindiana.org
  http://openindiana.org/mailman/listinfo/openindiana-discuss
 
 
 ___
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss@openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss
  
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects (OpenIndiana-discuss Digest, Vol 26, Issue 34)

2012-09-12 Thread Bob Friesenhahn

On Wed, 12 Sep 2012, Ong Yu-Phing wrote:


My concern is that typically rsync will take quite a while to traverse a 
large set of files before sending only changed files; a classic example is


This sounds like behavior of rsync prior to 3.0.  Rsync is still slow 
but it is able to start sending changes right away.


Without using snapshots you really don't know what you are getting 
from an active filesystem.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-11 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/09/12 16:56, Mark Creamer wrote:
 A recent thread caused me to look for open source projects that
 leverage ZFS to backup systems. I found a couple, such as OmniTI's 
 Zetabackhttp://labs.omniti.com/labs/zetaback,

I am interested on this too.

- -- 
Jesús Cea Avión _/_/  _/_/_/_/_/_/
j...@jcea.es - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:j...@jabber.org _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
Things are not so easy  _/_/  _/_/_/_/  _/_/_/_/  _/_/
My name is Dump, Core Dump   _/_/_/_/_/_/  _/_/  _/_/
El amor es poner tu felicidad en la felicidad de otro - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQCVAwUBUE9f/Zlgi5GaxT1NAQLpSQP/bZUfpHfttKjS84FMYSwVjUlPZMeWtGib
7XibB5+pQXLjeynzLLmv7RQkqnI9bhSRwp7UO3zOiBq/2BMPC2mwmQghPW2IjRQZ
l2g0jCTRYzs0wLFw8rWqt2261oI7ordGioAdfkYYOpWUGEURkEtUhxa5bJNnblms
ONTPlhe+PzU=
=2MyP
-END PGP SIGNATURE-

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-11 Thread Jim Klimov

2012-09-11 18:56, Mark Creamer wrote:

A recent thread caused me to look for open source projects that leverage
ZFS to backup systems. I found a couple, such as OmniTI's
Zetabackhttp://labs.omniti.com/labs/zetaback,
but that one appears to be dead - at least the links don't work and the Git
page shows no recent activity. Nexenta's commercial product for Windows,
Delorean, also appears to have been killed (unfortunately without first
being released to the community as far as I can tell). Wondering if anyone
knows of any other projects that use scripts or some other method to manage
system backups with zfs. I'm hoping to build on the ideas of someone more
knowledgeable to automate my snapshot and recovery efforts.



Regarding backup of other OSes to ZFS servers and leveraging ZFS
from there on, I can suggest rsync (or cwrsync in case of Windows
clients). This is easily automatable on clients (push to rsync
server) or on the server (pull from clients), provided that you
set up the security/logins appropriately.

The ZFS-enabled server can take care of snapshotting successful
rsync run results, deduplication if appropriately spec'ed, etc.

I posted an enhanced SMF script and config file snippets on OI
wiki to run the rsync server and take ZFS auto-snapshots after
successful completion of incoming rsync sessions (push mode);
it is even more trivial in pull mode initiated by the server -
it can mkdir .../.zfs/snapshot/$SNAPNAME given the proper
access via zfs allow).

HTH,
//Jim Klimov

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects

2012-09-11 Thread Julius Roberts
I have done this myself but haven't yet got around to releasing it. It's
called mdbackup, is written in perl and basically goes off and connects to
a bunch of remote servers (defined in a file called mdtab) via ssh or a smb
mount, rsyncs the data to a location on your local zpool and then snapshots
the deepest parent zfs filesystem. Another script renames snaps to preserve
them as monthlies or annuals and another script purges the remainder of
snaps based on a retention policy defined in that severs configuration
file, normally 21 nighties, 12 monthly and 7 annuals. It all runs from
cronies. It does lots of nice logging and error checking and has nice
health check scripts which can be used to integrate this with nagios.  it's
reasonably mature and stable, I rewrote if from bash to perl a year ago,
but in concept it's been running g for 5 years ago, I started it using
solaris express developers edition, zfs v10.  I have 4 servers running
mdbackup and I manage it all using subversion. As for releasing it into the
wild I'm happy do do that, but there are no appropriate licensing
statements in any if the files nor have I considered what licence to even
use. I was thinking of pushing the code to a slave svn instance from which
the public can sync if they like.  Pretty busy right now though :) oh it's
all documented too. If it sounds good and you can help some way that would
be awesome. Oh and it does encrypted offsite exports too but I'm not real
happy with the performance of that at this stage, seems to die over 200gb
on the few servers I've tested it on. Anyhow, mdbackup.

Kind regards Hoolio

On Wednesday, 12 September 2012, Mark Creamer white...@gmail.com wrote:
 A recent thread caused me to look for open source projects that leverage
 ZFS to backup systems. I found a couple, such as OmniTI's
 Zetabackhttp://labs.omniti.com/labs/zetaback,
 but that one appears to be dead - at least the links don't work and the
Git
 page shows no recent activity. Nexenta's commercial product for Windows,
 Delorean, also appears to have been killed (unfortunately without first
 being released to the community as far as I can tell). Wondering if anyone
 knows of any other projects that use scripts or some other method to
manage
 system backups with zfs. I'm hoping to build on the ideas of someone more
 knowledgeable to automate my snapshot and recovery efforts.

 --
 Mark Creamer
 ___
 OpenIndiana-discuss mailing list
 OpenIndiana-discuss@openindiana.org
 http://openindiana.org/mailman/listinfo/openindiana-discuss


-- 
Kind regards, Jules

golgy whats so wrong with plumb?
hoolio nothing, in itself.  it's just for me, knowing what it means
infers i cannot any longer pretend to not be a complete square when it
comes to computers
Gryphon I don't know that knowing anything about plumb turns you into a
nerd, but this conversation already has
hoolio are you calling me nerdy?
checkers hoolio: you know what initramfs means, AND does. You're lost to
the non-geek world already
Gryphon yes
hoolio hrm
hoolio goodbye cruel world.
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Current ZFS Backup projects (OpenIndiana-discuss Digest, Vol 26, Issue 34)

2012-09-11 Thread Ong Yu-Phing
Jim, I assume you are referring to this: 
http://wiki.openindiana.org/oi/rsync+daemon+service+on+OpenIndiana, thanks!


My concern is that typically rsync will take quite a while to traverse a 
large set of files before sending only changed files; a classic example 
is backing up say 1TB of maildir emails, it may take 4+ hours, and you 
now have to deal with a situation where your midnight backup is really a 
somewhere between midnight and 4am backup.  And of course, if you want 
to take snapshots/backups of comstar volumes, rsync isn't quite the 
right fit.


On the other hand, a zfs snapshot gives an almost-at-the-time backup 
(give or take a few seconds), versus the aforementioned rsync.  The zfs 
snapshot can then be sent off-site, independent of the backup activity.


However, having used zetaback, warmer, as well as other zfs scripts, 
what I've noticed so far is that sometimes, the snapshot send/receive 
hangs (for want of a better word), then the other automated, scheduled 
jobs then queue and hang behind the first (since they tend to be 
incremental).


If anybody has encountered and found a solution or even a way to 
troubleshoot why that particular job hangs, I'd appreciate any feedback!


Phing

On 12/09/2012 01:47, Jim Klimov wrote:

2012-09-11 18:56, Mark Creamer wrote:

A recent thread caused me to look for open source projects that leverage
ZFS to backup systems. I found a couple, such as OmniTI's
Zetabackhttp://labs.omniti.com/labs/zetaback,
but that one appears to be dead - at least the links don't work and 
the Git

page shows no recent activity. Nexenta's commercial product for Windows,
Delorean, also appears to have been killed (unfortunately without 
first
being released to the community as far as I can tell). Wondering if 
anyone
knows of any other projects that use scripts or some other method to 
manage
system backups with zfs. I'm hoping to build on the ideas of someone 
more

knowledgeable to automate my snapshot and recovery efforts.



Regarding backup of other OSes to ZFS servers and leveraging ZFS
from there on, I can suggest rsync (or cwrsync in case of Windows
clients). This is easily automatable on clients (push to rsync
server) or on the server (pull from clients), provided that you
set up the security/logins appropriately.

The ZFS-enabled server can take care of snapshotting successful
rsync run results, deduplication if appropriately spec'ed, etc.

I posted an enhanced SMF script and config file snippets on OI
wiki to run the rsync server and take ZFS auto-snapshots after
successful completion of incoming rsync sessions (push mode);
it is even more trivial in pull mode initiated by the server -
it can mkdir .../.zfs/snapshot/$SNAPNAME given the proper
access via zfs allow).

HTH,
//Jim Klimov






___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss