Local/Remote Backups TimeMachine style, automatic scrub

Moderators: jhartley, MSR734, nola

Re: Local/Remote Backups TimeMachine style, automatic scrub

Post by mk01 » Mon Feb 04, 2013 6:53 pm

@shuman: although in man pages is written, that launchd will start delayed jobs (missed during planned time), it's not fully true. it will happen only if machine is in power on state (it's running, or is sleeping, or load was that time too high).

if you don't run your machine 24x7, your jobs will not run properly with launchd. anacron installation requires no setup, just copying (or via symlink) the scripts you want to schedule (daily / weekly / monthly)

matus
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: Local/Remote Backups TimeMachine style, automatic scrub

Post by osc » Sun Feb 10, 2013 4:34 am

mk01 wrote:can use replication or just send full or incremental.


Thank you for that job ! Can your script be used to maintain 2 zpools synchronized ?

Olivier
osc Offline


 
Posts: 2
Joined: Mon Oct 01, 2012 12:42 pm

zfstimemachinebackup.perl dataset nomenclature

Post by grahamperrin » Sun Feb 10, 2013 8:23 am

Thanks to Patrick for the change :-)
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Local/Remote Backups TimeMachine style, automatic scrub

Post by mk01 » Tue Feb 12, 2013 7:48 am

osc wrote:
mk01 wrote:can use replication or just send full or incremental.


Thank you for that job ! Can your script be used to maintain 2 zpools synchronized ?

Olivier


If you use the replication option, yes. Otherwise snapshots will be deleted (at destination (local/remote)) only based on "to keep" option (or set# with hanoi rotation).

mk
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Re: Local/Remote Backups TimeMachine style, automatic scrub

Post by osc » Wed Feb 13, 2013 6:47 am

mk01 wrote:
osc wrote:
mk01 wrote:can use replication or just send full or incremental.


Thank you for that job ! Can your script be used to maintain 2 zpools synchronized ?

Olivier


If you use the replication option, yes. Otherwise snapshots will be deleted (at destination (local/remote)) only based on "to keep" option (or set# with hanoi rotation).

mk


Thank you for your quick answer ! To be sure I understand well, if I make :
- modifications on "zpool A", then "zpool B" will be updated, and
- modifications on "zpool B", then "zpool A" will be updated

And can I achieve both synchronizations at one time running your script from the server A.

Olivier
osc Offline


 
Posts: 2
Joined: Mon Oct 01, 2012 12:42 pm

Re: Local/Remote Backups TimeMachine style, automatic scrub

Post by mk01 » Fri Feb 15, 2013 6:50 pm

osc wrote:Thank you for your quick answer ! To be sure I understand well, if I make :
- modifications on "zpool A", then "zpool B" will be updated, and
- modifications on "zpool B", then "zpool A" will be updated

And can I achieve both synchronizations at one time running your script from the server A.


1) It depends on what you understand with "modification". If you mean change of file or fs structure, then no - it operates on snapshot level. If you mean newly created snapshot, then yes. But still only if there will be no modification on the other pool (from last sync). Although linux implementation allows "overlapping" snapshots (machine1 with snapshots A,B can receive change A->C from machine2 and will store C while still keeping B), ZEVO can't - and even with the linux implementation this would mean, that snapshot B is there for rollback (or clone) operation, but state C would not include changes from A to B.

2) no.

depends on the application, but this looks like a solution to your questions http://www.gluster.org.
mk01 Offline


 
Posts: 65
Joined: Mon Sep 17, 2012 1:16 am

Previous

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron