Welcome! » Log In » Create A New Profile

Patch: Run preexec and postexec before rotating higher inter

Posted by Anonymous 
Patch: Run preexec and postexec before rotating higher inter
April 14, 2011 07:01AM
Hi All,

I use the preexec hook to setup (mostly mount) my backup media, so I need it to
be run for every rsnapshot action, including ones that are just rotation. I've
attached a patch which does that. I don't know if this is a change you want to
make in the main version or not -- it would be good for me, but bad for people
who do expensive operations in preexec.

-Eric

--
Eric W. Anderson Electrical and Computer Engineering
andersoe < at > ece.cmu.edu Carnegie Mellon University
phone: +1-412-268-1908 Hamerschlag A311

PGP key fingerprint:
D3C5 D6FF EDED 9F1F C36D 53A3 74B7 53A6 3C74 5F12

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. [p.sf.net]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Patch: Run preexec and postexec before rotating higher inter
April 14, 2011 07:26AM
On Thu, 2011-04-14 at 09:34 -0400, Eric W. Anderson wrote:
Quote

I use the preexec hook to setup (mostly mount) my backup media, so I need it to
be run for every rsnapshot action, including ones that are just rotation. I've
attached a patch which does that. I don't know if this is a change you want to
make in the main version or not -- it would be good for me, but bad for people
who do expensive operations in preexec.
The current pre/postexec is for preparing the sources for a snapshot to
be captured, e.g., putting servers in read-only mode. Setting up access
to the snapshot root would be a different feature. See
[sourceforge.net] .

--
Matt

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. [p.sf.net]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Patch: Run preexec and postexec before rotating higher inter
April 14, 2011 08:10AM
Thus spake Matt McCutchen (matt < at > mattmccutchen.net):

...

Quote

The current pre/postexec is for preparing the sources for a snapshot to
be captured, e.g., putting servers in read-only mode. Setting up access
to the snapshot root would be a different feature. See
[sourceforge.net] .
I'll buy that. Do you think such a feature should be implemented? You suggest
a wrapper in your sourceforge comment. My inclination would be to put it in
rsnapshot itself, just because a wrapper would be one more thing for the user
to keep track of, but that's not a very powerful argument.

-Eric

--
Eric W. Anderson Electrical and Computer Engineering
andersoe < at > ece.cmu.edu Carnegie Mellon University
phone: +1-412-268-1908 Hamerschlag A311

PGP key fingerprint:
D3C5 D6FF EDED 9F1F C36D 53A3 74B7 53A6 3C74 5F12

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. [p.sf.net]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
[lists.sourceforge.net]
Sorry, only registered users may post in this forum.

Click here to login


Parse error: syntax error, unexpected 'GoogleAnalyticsObject' (T_STRING), expecting ']' in /tmp/tpl-lightweight_blue-footer-bc9d4c1f6d5e5fdfdcbff526fb7bae92.php-stage2 on line 6