LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-10-2012, 07:21 AM   #1
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Rep: Reputation: 1
backup script


Hi

i have centos 5.3 i want to back data from office to another location which having also centos
how it possible with script

AMAR
 
Old 02-10-2012, 08:59 AM   #2
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Sure - rsync will do exactly what you want. http://joshua14.homelinux.org/blog/?p=476
 
Old 02-10-2012, 10:25 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,250

Rep: Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432
Quote:
Originally Posted by amartlk View Post
Hi
i have centos 5.3 i want to back data from office to another location which having also centos
how it possible with script
AMAR
Similar to what you asked before:
http://www.linuxquestions.org/questi...backup-892023/

And it's possible by you writing the script. Again, you omit the important details that anyone would need to be able to help you. How much data? What is the bandwidth between the two servers? Want full backups or incremental? What is your rotation rate? Versions of files? What software are you using to back up your data?? The subject of backing up a Linux server has been covered many times on here...use the search function.

Rsync will work to keep two locations identical, but you need to realize the difference between that, and a true backup. What if a file gets corrupted?? The corruption at sitea will be mirrored to siteb, so when you 'restore' the file, you won't have it. That's where versioning comes in to play. Look at Amanda or bacula.
 
Old 02-10-2012, 12:48 PM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
rsync would be best to backup your data.

http://www.thegeekstuff.com/2010/09/...mand-examples/
http://beginlinux.wordpress.com/2008...o-backup-data/
https://www.linux.com/news/enterpris...ert-with-rsync
 
Old 02-10-2012, 01:39 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,250

Rep: Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432Reputation: 4432
Sorry, no...rsync will make a COPY of one set of data to another, but see previous comments about that not actually being a 'real' backup.
 
Old 02-10-2012, 03:53 PM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You can take help from these websites for securely copying data:

http://blog.schmichael.com/2008/03/1...sing-ssh-keys/
http://archive09.linux.com/feature/113847

In these websites they show how you can securely(through ssh key) backup your data and then you can put the command of copying in crontab to automate it or you can create your own script to automate it...
 
Old 02-11-2012, 12:04 AM   #7
amartlk
Member
 
Registered: Sep 2010
Location: Nagpur India
Posts: 347

Original Poster
Rep: Reputation: 1
Thanks All of you i will try and let you known



AMAR
 
  


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
Backup Script vaniaspeedy Ubuntu 3 12-05-2010 09:37 AM
What happens with backup-manager.org (very useful backup script)? Murz Linux - Software 3 07-27-2010 07:46 AM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 09:52 AM
Need help with script to organise files into folders as part of DVD backup script jasybee2000 Linux - Newbie 5 06-15-2009 08:29 PM
how to create backup MYSQL Script to backup my database for every 1hour RMLinux Linux - Newbie 3 11-20-2008 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration