Results 1 to 8 of 8

Thread: [SOLVED] Reduce backups kept

  1. #1
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    95
    Rep Power
    5

    Default [SOLVED] Reduce backups kept

    Hi All

    Is it possible to stop zimbra network edition keeping 4 weeks worth of backup and reducing it to say 2. Having a bit of a space issue at present on a hosted server.

    Thanks

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    11

    Default

    use zmschedulebackup and the delete option, take a look at the wiki for syntax

    CLI zmschedulebackup Network Edition only - Zimbra :: Wiki

  3. #3
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    95
    Rep Power
    5

    Default

    I still want the server to backup as it does now and not change how often but just how many days worth it keeps in the backup folder

    Thanks

  4. #4
    dipeshmehta is offline Special Member
    Join Date
    Jun 2010
    Location
    Rajkot, India
    Posts
    160
    Rep Power
    5

    Default

    check for cronjob with command like
    Code:
    /opt/zimbra/bin/zmbackup -del 1m --mail-report
    and change parameter "-del 1m" to "-del 15d". When this cron job gets executed, it will delete backups older than 15 days.

  5. #5
    glennbtn is offline Loyal Member
    Join Date
    Dec 2009
    Location
    Worthing. UK
    Posts
    95
    Rep Power
    5

    Default

    That's fantastic

    Thanks

  6. #6
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    448
    Rep Power
    5

    Question

    Quote Originally Posted by dipeshmehta View Post
    check for cronjob with command like
    Code:
    /opt/zimbra/bin/zmbackup -del 1m --mail-report
    and change parameter "-del 1m" to "-del 15d". When this cron job gets executed, it will delete backups older than 15 days.
    Could someone show me how this cron entry is supposed to look? I have no such entry in my zimbra cron:

    Code:
    # BACKUP BEGIN
    0 1 * * 6 /opt/zimbra/bin/zmbackup -f -a  all    
    0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i 
    # BACKUP END
    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

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

    Default

    Quote Originally Posted by lytledd View Post
    Could someone show me how this cron entry is supposed to look?
    It should look like this:

    Code:
    0 0 * * * /opt/zimbra/bin/zmbackup -del 1m --mail-report
    I don't, however, understand why you'd need it as it's a Network Edition feature for the scheduled backup.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    lytledd is offline Elite Member
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    448
    Rep Power
    5

    Default

    Thank Bill.

    I run OSE at home and NE at work. The work installation has never removed older backups and now I know why.

    You'd think though, when doing the upgrades, it'd modify the cron job and and that entry.

    I'll manually add it.

    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] archiving Zimbra backups
    By admin1 in forum Administrators
    Replies: 8
    Last Post: 08-05-2011, 06:08 PM
  2. ? relating to Zimbra Desktop backups - Newbie
    By Scoobs in forum General Questions
    Replies: 0
    Last Post: 02-21-2011, 06:03 AM
  3. Question about NE and Backups.
    By dougconley in forum Administrators
    Replies: 2
    Last Post: 12-18-2007, 12:56 AM
  4. Backups - Please review what I am doing
    By sternfan in forum Administrators
    Replies: 1
    Last Post: 12-13-2007, 04:36 PM
  5. Network Edition backups out of control
    By dameron in forum Administrators
    Replies: 1
    Last Post: 08-29-2007, 02:38 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
  •