Koozali.org: home of the SME Server

Pre and Post backup script. (dar2)

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Pre and Post backup script. (dar2)
« on: October 09, 2008, 04:48:58 PM »
Hi,

Is it possible to run 2 .sh files at backup time?
the first one before the backup starts (to shutdown vmware machines) and one after the backup (to start vmware machines again)

I'm using DAR2.


Kind regards,
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Pre and Post backup script. (dar2)
« Reply #1 on: October 09, 2008, 07:19:53 PM »
Yes it executes the pre and post backup events.

Darrell

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: Pre and Post backup script. (dar2)
« Reply #2 on: October 09, 2008, 07:51:51 PM »
Hi Darrell,

How can i configure them? do you have some tips where i can search for it?

Kind regards,
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Pre and Post backup script. (dar2)
« Reply #3 on: October 09, 2008, 08:58:51 PM »
Read the Developer Manual

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: Pre and Post backup script. (dar2)
« Reply #4 on: October 10, 2008, 03:10:46 AM »
Hi dmay,

I checked out the documentation, but it seems to me that the documentation does explain about the internal backup programs from SME Server.

I'm using Dar2..


I also only found that it's possible to add pri- post backup scripts, but it doesn't explain how to place them.

Does anybody know how i can configure these scripts?
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Pre and Post backup script. (dar2)
« Reply #5 on: October 10, 2008, 03:39:15 AM »
Is it possible to run 2 .sh files at backup time?

As dmay said, read the Developers Manual. It will tell you how to add programs to run at particular times.

Quote
the first one before the backup starts (to shutdown vmware machines) and one after the backup (to start vmware machines again)

So you want to add one script to the pre-backup event directory, and one to the post-backup event directory.