LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2005, 01:29 PM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
rsync as backup?


I'm trying to figure out a way to backup my mail server to another server just incase if anything happens. Both server are at difference locations & different isp. I wanted that if the main email server goes down or that the isp is down, I can easily just switch ip pointing toward the backup server.

would rsync be the tool to do this job?
 
Old 03-13-2005, 01:45 PM   #2
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
If all your mail is stored on the server (which it sounds like it is), then I think rsync is the easiest way to go. You could set up a cron job to run every hour or so and sync the directories. If bandwidth is an issue, you could instead write a script that tars and compresses your mail directory then copies it to the remote server and untar it.

Oh.. and don't forget to run rsync with "-e ssh"

Hope that helps
 
Old 03-13-2005, 01:54 PM   #3
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
does the sync goes both way or one way? as in will both system have the sync informations or does it just tranfer toward one computer?
 
Old 03-13-2005, 02:22 PM   #4
auximini
Member
 
Registered: Dec 2003
Location: Calgary, AB
Distribution: Any!
Posts: 146

Rep: Reputation: 18
Your source directory will be the "master" directory. It will sync all new files to the destination directory. If, by chance, you get new files in your destination directory from somewhere else besides rsync, they will never appear on the source.

You can also specify the "--delete" option. This will delete files on the destination side that do not appear on the source side. So if you delete an email, the same email will also be deleted on your backup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 1 or RSYNC BACKUP otagojo Linux - General 7 08-01-2005 12:34 AM
automated backup with cygwin and rsync hoover93 Linux - Networking 1 07-06-2005 08:35 PM
rsync incremental backup sachin_keluskar Linux - Software 1 06-29-2005 02:09 AM
Rsync backups - how not to backup TV recordings jamespetts Linux - Software 0 11-20-2004 12:15 PM
rsync backup... tarballed Linux - Networking 10 06-27-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration