Results 1 to 3 of 3

Thread: Trigger shell script after backup completion?

  1. #1
    batfastad is offline Elite Member
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    296
    Rep Power
    7

    Default Trigger shell script after backup completion?

    Hi everyone

    Just migrated a small Zimbra NE installation to a remote machine. The problem is the amount of local storage is somewhat smaller than I had before. Rather then keeping 4 full backups uncompressed + daily incrementals, I'd quite like to keep only 2 full backups within our /opt/zimbra/backup directory. Then the rest I will compress and transfer over to another provider.

    I can create a simple shell script to handle the compression, encryption and transfer.
    But is there a way to trigger a script once a Zimbra backup job is completed?

    I don't want to have to run zmbackupquery every X minutes and grepping for the status. Or relying on the fact that my backups normally take 60 minutes and scheduling a script to a hard-coded time.

    Is there a more reliable method of triggering a shell script once a backup has completed?

    Cheers, B
    My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
    And a way to associate mailto: handlers with a Zimbra Prism webapp

  2. #2
    dik23 is offline Advanced Member
    Join Date
    Dec 2010
    Location
    UK
    Posts
    227
    Rep Power
    4

    Default

    Remove the backup from cron and write a script including both the backup and what you want to replace it ?

  3. #3
    batfastad is offline Elite Member
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    296
    Rep Power
    7

    Default

    Ha, yeah of course. I should have thought of that
    That will work! Gives me finer-grained control over the options as well.

    Cheers, B
    My Zimbra Bugs Wishlist: 16411, 24567, 35676, 36430, 37770, 41872, 43733, 44384, 46383, 47759
    And a way to associate mailto: handlers with a Zimbra Prism webapp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Creation of Mailboxes via a shell script
    By LHammonds in forum Administrators
    Replies: 3
    Last Post: 10-11-2011, 08:52 PM
  2. Help me with a basic backup script please
    By Abzstrak in forum Administrators
    Replies: 0
    Last Post: 04-28-2010, 06:56 AM
  3. Backup help needed. Using "Simple Shell Script Method"
    By physikal in forum Administrators
    Replies: 3
    Last Post: 05-18-2009, 09:49 AM
  4. Little OT, backup script
    By skiv71 in forum Administrators
    Replies: 0
    Last Post: 11-10-2008, 06:02 AM
  5. Backup script issues
    By SSS in forum Administrators
    Replies: 18
    Last Post: 12-03-2007, 09:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •