Results 1 to 7 of 7

Thread: zmbackupquery, cmd line option to show in progress backups

  1. #1
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    297
    Rep Power
    8

    Default zmbackupquery, cmd line option to show in progress backups

    Hi everyone

    I was just looking through the docs for zmbackupquery...
    zmbackupquery

    I wanted to check on the status of a full backup that was running and rather than going into the admin console and refreshing the backup status, I thought I'd try using a command line tool.
    I found zmbackupquery which does the trick but it's slightly time-consuming having to enter either the known label or a time/date range to show the backups as "in progress"

    My suggestion is this... the addition of a command line option to zmbackupquery which filters the output to show any backups that are either in progress or completed.

    Comments/suggestions?

    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
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    doesn't zmbackupquery with no arguments do this

  3. #3
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    297
    Rep Power
    8

    Default

    When I tried that, it seems to just list all backup labels with their status.
    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

  4. #4
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    if there is a backup in progress it should show it. it should be the first entry it shows. it'll even show like

    Backing Up Account 58 or 90

  5. #5
    Join Date
    Jun 2010
    Posts
    198
    Rep Power
    5

    Default

    Quote Originally Posted by bdial View Post
    if there is a backup in progress it should show it. it should be the first entry it shows. it'll even show like

    Backing Up Account 58 or 90
    Yeah, if there is a backup in progress, the command will have output like the following:

    "Status: in progress
    Currently backing up: you@you.com
    Number of accounts: 5 out of 1704 completed"

  6. #6
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    297
    Rep Power
    8

    Default

    Yes that's correct. Any "in progress" backups are returned first but it is then followed by all completed backups. Scrolling up to find the first entry isn't easy when you have many backup labels.

    I'm looking for a way to show only "in progress" backups.
    I've entered this bug report Bug 60560 – Options for zmbackupquery to list only in progress or completed backup operations which proposes some new options to the zmbackupquery command to return only "in progress" or "completed" backup operations.

    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

  7. #7
    Join Date
    Sep 2007
    Posts
    12
    Rep Power
    8

    Default

    zmbackupquery | grep -B 3 -A 4 'in progress'

    zmbackupquery | grep -B 3 -A 4 'completed'

    zmbackupquery | grep -B 3 -A 4 'aborted'

Similar Threads

  1. Replies: 14
    Last Post: 09-27-2011, 12:50 AM
  2. Spam training problem...
    By TaskMaster in forum Installation
    Replies: 2
    Last Post: 05-08-2007, 10:49 AM
  3. Replies: 18
    Last Post: 03-20-2006, 02:22 PM
  4. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

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