Results 1 to 7 of 7

Thread: Automatically delete backups

  1. #1
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default Automatically delete backups

    Is there a way to schedule the automatic deletion of backups, or possibly to tell it to only keep a set number of full backups? We are running into problems with full backups being made until the point the it fills up the hard drive.

  2. #2
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Are you using NE or FOSS? What version? Backup procedures vary substantially between the two. . .

  3. #3
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default

    We are running 5.0.2 Network

  4. #4
    Join Date
    Feb 2008
    Posts
    11
    Rep Power
    7

    Default

    As we run it now, we are just leaving the backups on the server; we then pull a full backup off about once a week. We are just trying to find a way to bet automate the process.

  5. #5
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    You could do what I do in FOSS, which is to script the transfer of the files by ftp to another box, then deleting them from the mail server. Such a script can run in crontab whenever you want. Crontab is your friend for all sorts of housekeeping chores.

  6. #6
    Join Date
    Mar 2008
    Location
    Washington, DC
    Posts
    10
    Rep Power
    7

    Default

    Hi guys,

    I figured I might chime in here even though I'm new. I'm evaluating Zimbra for potential deploy within our organization and these forums have helped answer many of my questions. (It's saved a good 500 questions at least that I did not have to ask Jim from Zimbra who has been helping us.)

    Rotating backups should be something that is pretty easily setup as a cron job.

    You can use something as basic as:

    Code:
    #!/bin/bash
    
    find /path/to/backups/ -type f -mtime +8 -print -exec rm -f {} \;
    Put the above into a file somewhere and create a cron job for it. Make sure to give it proper execute permissions. That should automatically remove files that are older than 7 days (basically saying remove anything 8 days or older).

    This gets a little more complicated when you deal with full/incrimentals. So make sure you only delete enough files to keep at least one full backup on a regular basis. I personally have full backups once a week with incrimentals on the other 6 days, and keep 2 weeks worth of backups. Anything older than 15 days is deleted automatically.

    Hope that helps!
    Last edited by radiorob; 03-11-2008 at 09:09 AM.

  7. #7
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Quote Originally Posted by radiorob View Post
    I figured I might chime in here even though I'm new.
    Hey Rob,
    1. Welcome to the forums, and to Zimbra!
    2. Please don't apologize for being new. There's no "age limit" for adding useful information from your knowledge/experience! We're friends helping friends here!
    Come back & see us often!

    Dan

Similar Threads

  1. cron pruning of backups
    By ThorGoLucky in forum Administrators
    Replies: 10
    Last Post: 11-13-2009, 01:20 AM
  2. Remove old backups
    By captainmish in forum Administrators
    Replies: 3
    Last Post: 01-23-2008, 08:31 AM
  3. Automatically delete oldest mail when quota is full?
    By marcb in forum Administrators
    Replies: 2
    Last Post: 01-08-2008, 12:03 PM
  4. Question about NE and Backups.
    By dougconley in forum Administrators
    Replies: 2
    Last Post: 12-17-2007, 11:56 PM
  5. RSS Feed Folders Delete Old Automatically
    By unilogic in forum Developers
    Replies: 1
    Last Post: 12-06-2005, 10:02 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
  •