Results 1 to 2 of 2

Thread: OSE rotating backup script

  1. #1
    Join Date
    Feb 2007
    Rep Power

    Default OSE rotating backup script

    I had a need to backup my server to a NAS using samba. I'm sure there may be others out there with such a need to backup across a network to a samba share.

    This script was pieced together in part by script authored by Brice Burgess in an article at the following link: | Backing up your Linux desktop with rsync

    As well as a script written by cvidal who is a contributor to Zimbra. I pieced in the areas related to the mounting of network drives. The nice thing about the script is that it keeps rotating backups for better redundancy. You can have a look at it and adjust to your liking. I hope people find it useful.

    You will need to do the following to make it executable and then insert as a cron job:

    Create a file named and copy/paste the contents of the attached text file.

    #chmod +x
    #cp /usr/local/bin/
    #cd /etc/cron.daily
    #ln -s /usr/local/bin/ .

    It will run with cron dailys from there.

    The following will rotate the log file:
    To rotate the logs, add a file named "zimbak" under /etc/logrotate.d/ with the lines:

    /var/log/zimbak.log {

    Big thanks to cvidal for those inserting pieces above.


  2. #2
    Join Date
    Feb 2007
    Rep Power


    I've been asked about preserving symbolic links using the rsync method to a samba share. I wanted to answer that question in this thread so anyone concerned can take what they can from my thoughts.

    This is a backup script and to my knowledge there is not a way to preserve symbolic links using rsync to a samba share in this manner. It may be possible but the way I look at it is that it's not necessary. As said before, this is a backup script and preserving of symbolic links are not necessary. If you need to restore from one of the backup points, you would rsync over back to the mail server writing over top of the existing information and the symbolic links would still remain intact. If you were doing a disaster recovery, a complete reinstall would be necessary and then you would rsync back to the mail server from backup essentially restoring information. Again, in that case, the symbolic links would already be there and would not be necessary to restore.

    Ultimately, the need to backup the symbolic links would not be necessary. Any restore would place the relevant data back in the correct place and the symbolic existing links would look to it.

    Again, enjoy.

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 12:19 AM
  2. Backup best practice
    By Eyfi in forum Administrators
    Replies: 2
    Last Post: 06-29-2007, 07:52 AM
  3. Off-site backup
    By jbareMACS in forum Administrators
    Replies: 3
    Last Post: 05-20-2007, 10:32 AM
  4. Backup of Zimbra OS Edition
    By soxfan in forum Administrators
    Replies: 3
    Last Post: 03-10-2007, 09:18 AM
  5. NE Backup best practises
    By Klug in forum Administrators
    Replies: 3
    Last Post: 05-29-2006, 08:32 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