Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: compdoc on September 16, 2008, 06:38:13 PM

Title: backup configuration
Post by: compdoc on September 16, 2008, 06:38:13 PM
I've just installed sme from scratch and restored from a backup, but files important to me were not backed up or restored. Specifically:

/var/log/spamd/* (all files in there)
/var/log/qpsmtpd/* (all files in there)
/var/spool/spamd/.spamassassin/* (all files in there)

I need the bayes database because more spam gets through without my trained database, and I want the history of incoming mail from the spamd and qpsmtpd directories for reporting, etc.

Can this be defined? I just installed the e-smith-backup contrib, but I would want this to work with the normal backup as well...

Title: Re: backup configuration
Post by: CharlieBrady on September 16, 2008, 09:07:33 PM
I've just installed sme from scratch and restored from a backup, but files important to me were not backed up or restored. Specifically:

/var/log/spamd/* (all files in there)
/var/log/qpsmtpd/* (all files in there)
/var/spool/spamd/.spamassassin/* (all files in there)


If those files are important to you, then you need to add a script into /etc/e-smith/events/pre-backup to copy them somewhere within /home/e-smith/files so that they will be included in the backup.

Alternatively, you should modify the software which is creating those files so that they are located within /home/e-smith/files, rather than under /var/log and /var/spool/spamd.
Title: Re: backup configuration
Post by: tropicalview on September 18, 2008, 09:34:06 PM
you can also consider to use DAR.
check http://wiki.contribs.org/DAR2

there you can define per backup what you want to backup.

Perhaps you want to backup daily the important files, and those files only in the weekend.


success
Title: Re: backup configuration
Post by: compdoc on September 18, 2008, 10:47:25 PM
As far as I can tell, the SME backup is getting everything but these few files. If a pre-backup script allows, I should be able to zip the files up and copy them to root's folder, where they will be included in the backup.

Hopefully, theres a way to run a script on restore as well.

Thanks