Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: penguin_bb on December 06, 2008, 05:24:13 AM

Title: How to reduce backup file size with Backup-with-dar?
Post by: penguin_bb on December 06, 2008, 05:24:13 AM
My SME server is solely used for mail server. Our email storage is averaging at 5GB. But the data to backup increases constantly even the email storage is keeping or decreasing. Now I need 3 hours to backup the server and I do not want that. Is there a reason for the increasing backup size, even my actual data has decreased? How could I reduce it? Thanks in advance.

Conrad
Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: chris burnat on December 06, 2008, 05:32:09 AM
This topic has been moved to the Contribs section where it is more appropriate.  DAR is a contribution maintained by D. May.
Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: David Harper on December 06, 2008, 08:10:21 AM
Backup-with-dar is now included in SME 7.4 base.

Anyhow, what are your backup settings?

Code: [Select]
db configuration show backupwk
Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: tviles on December 07, 2008, 03:27:11 PM
Hijacking this, sorry. OK no I am not.

 ~]# db configuration show backupwk
backupwk=service
    BackupTime=19:36
    Compression=6
    CompressionProg=gzip
    DaysInSet=1
    FullDay=7
    IncNum=0
    IncOnlyTimeout=no
    Login=
    Password=
    Program=dar
    SetNum=0
    SetsMax=1
    SmbHost=localhost
    SmbShare=media/usbdisk1
    Timeout=8
    VFSType=usb
    status=enabled

How do you select WHAT you want to backup? I have symlinks that need to be included. I do like the new feature in 7.4 that mounts the usb drive when attached into the fstab file. New users need to remember that it (usb drive) has to be formatted to an accepted format type for SME.

Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: David Harper on December 07, 2008, 11:22:23 PM
Selections are controlled using a template. See this wiki page (http://wiki.contribs.org/Backup_with_dar#Adding_Directories_and_Files_to_the_list_of_backup_inclusions) for instructions.
Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: tviles on December 08, 2008, 12:44:02 AM
Thanks I also added in
--go-into opt
and
--go-into /
Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: tviles on December 08, 2008, 04:14:05 AM
Thanks I also added in
--go-into opt
and
--go-into /

I changed it to just /mnt/tracy instead of /

and getting this via email.

Cron <root@shpdserver> /sbin/e-smith/do_backupwk
Parse error on command line (or included files): Cannot add an absolute path

I will try mnt/tracy and try again.



Title: Re: How to reduce backup file size with Backup-with-dar?
Post by: cactus on December 08, 2008, 08:56:31 AM
I will try mnt/tracy and try again.
Perhaps you should have done that before posting, as the error messages seems pretty clear to me. Besides opt also has no leading slash and when it still had it's own panel the leading slash needed to be dropped already.