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 12-13-2011, 12:57 PM
Active Member
 
Posts: 28
Default zmschedulebackup: syntax for '-a all' and '--mail-report'

I was looking all over for information on how to use the properly implement the -a all and the --mail-report switches into the backup schedule on ZCS NE 7.1.3. I wanted my schedule to look exactly like the default schedule, except with a 14 day retention window. This is what I found out from guessing at various command line syntax:

For reference, here was the default schedule that was set up at install.
Code:
>zmschedulebackup -q
Current Schedule:

	f 0 1 * * 6 -a all --mail-report
	i 0 1 * * 0-5 --mail-report
	d 1m 0 0 * * * --mail-report
Running the command the way I thought proper doubled up '--mail-report' on the 'full' line
Code:
zmschedulebackup -R "-a all --mail-report" f "0 1 * * 6"  "--mail-report" i "0 1 * * 0-5"  "--mail-report" d 14d "0 0 * * *"
Schedule replaced

Current Schedule:

	f 0 1 * * 6 -a all --mail-report --mail-report
	i 0 1 * * 0-5 --mail-report
	d 14d 0 0 * * * --mail-report

Leaving out a '--mail-report' before the 'f' got me the results that I wanted, but it seemed goofy to me.
Code:
zmschedulebackup -R "-a all" f "0 1 * * 6"  "--mail-report" i "0 1 * * 0-5"  "--mail-report" d 14d "0 0 * * *"
Schedule replaced

Current Schedule:

	f 0 1 * * 6 -a all --mail-report
	i 0 1 * * 0-5 --mail-report
	d 14d 0 0 * * * --mail-report

Since I really can't find any good examples or documentation, can anyone explain how the zmschedulebackup syntax for these switches relates to the actual schedule?

Also, what happens if I leave off the -a all? I would assume that it would backup all accounts without that switch.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.