Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help about my mail server . I have a Mail server where "All OutSide" Mail is stored , suppose it's IP is 202.59.136.1. I have another server which is locally used (Ip 192.168.10.1) . Both server i have configured Sendmail .
Now i want to BACKUP my mail from REAL server to LOCAL network server . So that my mail is not destroyed . Is it possible ? If it is possible plz inform me .......
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
I think that mail is usually stored in /var/mail/. Therefore, you should be able to use rsync to copy the mail from the actual server to the backup server. On the local server:
Obviously, "userName" is a user on the remote system, with read access to /var/mail. In this case, the mail is being backed up to /home/localUser/mailBackup.
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
Hi,
What IBall said is correct but keep in mind that mail is moved from /var/spool/mail/<username> files to the respective users home directory ($HOME/mbox or $HOME/Mail) once an email has been read. be sure to back these up as well if you wish to preserve existing mail.
1) I want , My mail backup system does work automatically i.e., My Mail restore from Main server to others automatically . Is there any solution regarding this purpose ?
2) When i backup my mail , then using which server , i need to take my backup ? From Network server (192.168.10.1 ) ?
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
Quote:
2) When i backup my mail , then using which server , i need to take my backup ? From Network server (192.168.10.1 ) ?
The rsync line I gave you above will copy whatever is in /var/mail on the public server 202.x.x.x to the specified directory on the private server 192.168.x.x.
Rsync will only copy files from the remote server that have been modified since the local copy was modified.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.