Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2010, 01:41 AM
Elite Member
 
Posts: 275
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
Reply With Quote
  #2 (permalink)  
Old 07-03-2010, 06:34 AM
Moderator
 
Posts: 1,554
Default

doesn't zmbackupquery with no arguments do this
Reply With Quote
  #3 (permalink)  
Old 07-08-2010, 02:22 AM
Elite Member
 
Posts: 275
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
Reply With Quote
  #4 (permalink)  
Old 07-08-2010, 04:07 AM
Moderator
 
Posts: 1,554
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
Reply With Quote
  #5 (permalink)  
Old 07-08-2010, 05:36 AM
Advanced Member
 
Posts: 198
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"
Reply With Quote
  #6 (permalink)  
Old 06-02-2011, 10:58 PM
Elite Member
 
Posts: 275
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
Reply With Quote
  #7 (permalink)  
Old 03-05-2012, 11:46 PM
Member
 
Posts: 11
Default

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

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

zmbackupquery | grep -B 3 -A 4 'aborted'
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.