Results 1 to 9 of 9

Thread: Nightly Full Backup Schedule

  1. #1
    reza225 is offline Advanced Member
    Join Date
    Aug 2006
    Location
    San Diego
    Posts
    193
    Rep Power
    8

    Default Nightly Full Backup Schedule

    Hello, I'd like to have my Zimbra server backup in-full every night, and keep backups for up to 7 days. Could someone show me the proper zmschedulebackup syntax? I'm a little confused by the documentation.
    Thanks.
    Last edited by reza225; 12-08-2006 at 03:45 PM.

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Did you have a look at the wiki?

  3. #3
    bjared's Avatar
    bjared is offline Senior Member
    Join Date
    Jun 2006
    Location
    Indianapolis, IN
    Posts
    51
    Rep Power
    9

    Default Looked at the wiki

    Quote Originally Posted by wannabetenor View Post
    Did you have a look at the wiki?
    I just looked at the wiki, since I toughed this out without it. Some notes on the wiki:

    1. There's no mention of the "delete" schedule.
    2. There's no "real-world" example of a typical command. (i.e., no reference to the required quotes around the schedule)

    For better documentation, zmschedulebackup --help is (at this point) better documentation.

    Using the -R option to replace your schedule, you can specify all the schedules (delete, incremental and full) in the same command:

    Code:
    [zimbra@zimbra1 ~]$ zmschedulebackup -R \
    d 15d "0 12 * * 0" \
    f "0 1 * * 0" \
    i "0 1 * * 1-6"
    
    Schedule replaced
    
    Current Schedule:
    
            d 15d 0 12 * * 0
            f 0 1 * * 0
            i 0 1 * * 1-6
    Since there was no reference on the "d" (delete) schedule, you'll notice that it requires two parameters -- one for the age, and one for the crontab schedule. I hope this helps. It took me a handful of attempts before I figured this tool out. The --help option helped a lot more than either the admin guide or the wiki.
    Last edited by bjared; 12-19-2006 at 09:56 AM. Reason: I forgot to "preview"

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    Quote Originally Posted by bjared View Post
    1. There's no mention of the "delete" schedule.
    2. There's no "real-world" example of a typical command. (i.e., no reference to the required quotes around the schedule).
    Since you have some 'real world' experience you could add it to the wiki, it's editable by users.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    bjared's Avatar
    bjared is offline Senior Member
    Join Date
    Jun 2006
    Location
    Indianapolis, IN
    Posts
    51
    Rep Power
    9

    Default Can't edit the wiki

    Quote Originally Posted by phoenix View Post
    Since you have some 'real world' experience you could add it to the wiki, it's editable by users.
    What kind of users? I looked for a way to edit that page already, and I don't see an edit tab, as I do in other wikis. I can click on "article" "discussion" "view source" "history" and "watch".

    Let me know where you hid the "edit" tab, and I'd gladly add some content.

    --Brian

    P.S. When I append "&action=edit" to the URL, I don't get any buttons either to preview, submit nor show changes. Thanks.
    Last edited by bjared; 12-19-2006 at 10:35 AM. Reason: More info

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    You (probably) need to create an account, top right on the main page.
    Last edited by phoenix; 12-19-2006 at 10:47 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    Having said that, maybe you can only edit some of the pages. I don't have a wiki account and some of them do have an edit tab at the top. I've also never edited a wiki myself, so I'm probably completely lost here.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    bjared's Avatar
    bjared is offline Senior Member
    Join Date
    Jun 2006
    Location
    Indianapolis, IN
    Posts
    51
    Rep Power
    9

    Default Hmm...

    Yeah, I logged out and back in, and still no "edit" tab.

    I wonder if they'd let me edit the Administration guide too...

    (i.e page 116 of the 4.0 ZCS Network Edition, there is a reference to "zmofflinerestore" which isn't a valid command. There were some zmprov commands that were incorrect to, but I've slept a lot since discovering them.)

    ...but I digress. I'd love to contribute.

    Oh, to get back on topic... I have a lot of files under /opt/zimbra/backup with a date of December 31, 1969.

    Here's an example:

    Code:
      File: `/opt/zimbra/backup/sessions/full-20061202.060018.824/accounts/9022fb32-ad35-4f97-8aef-1ec554360941/account_latest.dat'
      Size: 1034            Blocks: 8          IO Block: 4096   regular file
    Device: 812h/2066d      Inode: 901242      Links: 2
    Access: (0640/-rw-r-----)  Uid: (  501/  zimbra)   Gid: (  501/  zimbra)
    Access: 1969-12-31 19:00:00.000000000 -0500
    Modify: 1969-12-31 19:00:00.000000000 -0500
    Change: 2006-12-16 08:55:21.000000000 -0500
    It appears to be a backup file from Dec 2, 2006? Why would it have such a funky date? I was going to use unix find to delete really old files, but after seeing these timestamps, I'm a little nervous on doing so.

    --Brian

  9. #9
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    Default

    I don't know much about the backup I'm afraid so there isn't much light I could shed on your problem.

    For the wiki, I'd suggest dropping an email to one of the admins and offer your help.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 01:19 AM
  2. Full Backup Issue
    By JamesWheatley in forum Administrators
    Replies: 1
    Last Post: 07-05-2007, 12:38 PM
  3. Restore single account failed from full backup
    By fmodola in forum Administrators
    Replies: 4
    Last Post: 06-20-2007, 05:27 AM
  4. copying only last full backup to store offsite
    By riccadus in forum Administrators
    Replies: 0
    Last Post: 01-11-2007, 01:29 AM
  5. NE Full backup problem
    By Matt in forum Administrators
    Replies: 4
    Last Post: 11-24-2006, 03:29 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
  •