Koozali.org: home of the SME Server

backup configuration

Offline compdoc

  • *
  • 226
  • +0/-0
backup configuration
« 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...


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: backup configuration
« Reply #1 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.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
Re: backup configuration
« Reply #2 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
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline compdoc

  • *
  • 226
  • +0/-0
Re: backup configuration
« Reply #3 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