LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   backing up mail server (https://www.linuxquestions.org/questions/linux-server-73/backing-up-mail-server-593610/)

beljith 10-22-2007 03:33 AM

backing up mail server
 
Hi all,

Please let me know how to backup mail server users login data using shell script.

thanks in advance.
beljith
beljith_p@yaho.co.in

wolfperkins 10-22-2007 08:26 AM

What mail server are you using? sendmail? postfix? other?

How is your mail server configured for authentication? pam?

beljith 10-23-2007 03:07 AM

Quote:

Originally Posted by wolfperkins (Post 2932521)
What mail server are you using? sendmail? postfix? other?

How is your mail server configured for authentication? pam?

Dear Sir,

We are using sendmail with usual authentication configuration.

with regards,
beljith
beljith_p@yahoo.co.in

wolfperkins 10-24-2007 09:33 AM

What exactly do you want to backup?

The authentication traces? That would end up in /var/log/mail.log by default. Your syslog configuration might need to be adjusted to capture the appropriate level in the log file.

beljith 10-25-2007 01:24 AM

Quote:

Originally Posted by wolfperkins (Post 2935034)
What exactly do you want to backup?

The authentication traces? That would end up in /var/log/mail.log by default. Your syslog configuration might need to be adjusted to capture the appropriate level in the log file.

Dear Sir,

I would like to backup users data (i prefer automatic backup from server to another machine) and configuration (one time). Please let me know what are the configuration files to backup.

sincerely,
beljith

wolfperkins 10-26-2007 07:24 AM

I would use the following commands to first copy the files to backup onto a remote server:
Code:

rsync -ax --delete /etc/mail backup_host:/path/to/backup/folder1
rsync -ax --delete /var/spool/mqueue backup_host:/path/to/backup/folder2

Then tar-up the folders on the remote server or send them to tape or whatever...

beljith 10-29-2007 12:40 AM

Quote:

Originally Posted by wolfperkins (Post 2937508)
I would use the following commands to first copy the files to backup onto a remote server:
Code:

rsync -ax --delete /etc/mail backup_host:/path/to/backup/folder1
rsync -ax --delete /var/spool/mqueue backup_host:/path/to/backup/folder2

Then tar-up the folders on the remote server or send them to tape or whatever...

Respected Sir,

Thank you for your kind advice.
beljith


All times are GMT -5. The time now is 03:04 PM.