LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-12-2007, 02:00 AM   #1
GameSky
Member
 
Registered: May 2007
Posts: 31

Rep: Reputation: 15
Exclamation automated backup


Hi..I'm quite new to linux world, and I wanna to ask about automated backup software or method.

The scenario:-

- I have 2 linux pc, A = Fedora core 6 most used for data storage or work, B = Fedora core 6 too mostly used for backup, incase Linux A break down.

Is there any software or method that allows me to set scheduled backup A-> B?

Thanks in advance

Last edited by GameSky; 06-13-2007 at 04:19 AM.
 
Old 06-12-2007, 02:04 AM   #2
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
give rsync a try.
awesome tool.
(put it in your crontab for automated scheduled execution)

Last edited by baikonur; 06-12-2007 at 02:05 AM.
 
Old 06-12-2007, 02:08 AM   #3
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
baikonur: Thanks for the fast reply, care to tell how to run/add the tool? I'm still new to those things

sorry for the trouble caused... and thanks in advance
 
Old 06-12-2007, 02:12 AM   #4
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
Code:
man rsync
should help you find out. I assumed your 2 boxes are connected over a network. If so, it's the right thing for you.
if you don't have it installed... well, I'm on debian here, but isn't it yum on fedora?
type
Code:
man -k cron
to learn what to read for automating the process.

Last edited by baikonur; 06-12-2007 at 02:15 AM.
 
Old 06-12-2007, 02:16 AM   #5
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
baikonur: Thanks for the reply. Yes, my 2 linux[es?] are connected in a network. Yea, its yum in fedora.

I'll give it a try first, thanks ^^"
 
Old 06-12-2007, 03:10 AM   #6
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
I've read it ...and I'm still kinda confused :S....

I just want to do these:-

- copy[backup] A's /home directory to B's
- setup a schedule for the backup process

Thanks in advance
 
Old 06-12-2007, 03:21 AM   #7
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
well, what have you tried already?
what is your problem?
try
Code:
rsync -av [ip_remote_pc]/home /some_directory
what happens?
 
Old 06-12-2007, 03:50 AM   #8
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
baikonur: Do you mean something like:-

192.168.0.123 is the destination ip...
And I want to copy the /home directory on this pc to another location, /backup
Code:
rsync -av 192.168.0.123/home /backup
Is this correct?

sorry for the trouble caused, I'm still new to linux and need some guidance :S..
Thanks in advance!
 
Old 06-12-2007, 03:58 AM   #9
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
rsync -av 192.168.0.123:/home /backup
would be correct, with the colon between ip and directory.
now this is to be run on the backup pc, with 192.168.0.123 being the other one.
try it!
 
Old 06-12-2007, 04:11 AM   #10
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
baikonur: Ok, at least I understand few, thanks ^^"

So, it should be like this:-
- The backup host is 192.168.0.123 and the source host is 192.168.0.10
- Backup 192.168.0.10's /home directory to the /backup

So, on 192.168.0.123 host I type this:-
Code:
rsync -av 192.168.0.10:/home /backup
ok..I've tried it, it works ..Thanks! May I know how to schedule the backup pc to retrieve/backup the directory on the source pc? And how to eliminate the need to type the password always?

Thanks again ^^"
 
Old 06-12-2007, 04:33 AM   #11
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
type
Code:
 crontab -e
to open the scheduled tasks.
type a line like
Code:
10 00 * * * rsync -av 192.168.0.10:/home /backup
to have it executed everyday at 10 in the morning.
the password thing... hmmm.
the rsync home page says:
You can avoid the password prompt by setting the environment variable RSYNC_PASSWORD .
you could try that.
what i do is this: i run it in a ssh-tunnel. like this
Code:
rsync -av -e ssh 192.168.0.10:/home /backup
to avoid typing the password everytime I exchanged rsa keys between the servers. look around in the forum, I'm pretty sure s.o. described how to do that already.

good luck
 
Old 06-12-2007, 05:01 AM   #12
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
baikonur: Thank you so much ^^"...I really appreciate your help...now I understand few of the steps required...Thanks a lot ^^"

Gonna try it "/
 
Old 06-12-2007, 05:10 AM   #13
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
welcome
 
Old 06-12-2007, 05:30 AM   #14
GameSky
Member
 
Registered: May 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Just another question...why I get this error? It seems I've tried, even changed from 24 hour format to 12 hour format, and changed it back..but it still display this message everytime I save the file.. any helps?

Code:
"/tmp/crontab.XXXXrBToyG":2: bad hour
errors in crontab file, can't install.
Do you want to retry the same edit?
 
Old 06-12-2007, 06:10 AM   #15
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
post your crontab file and i'll have a look
 
  


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
Automated HD backup General Linux - Hardware 3 05-11-2006 08:39 PM
mysql automated backup dkc_ace General 12 10-02-2004 08:19 AM
Automated Backup via FTP KePSuX Linux - Newbie 3 02-11-2004 08:25 AM
automated FTP backup josephswagner Linux - Software 2 06-06-2003 04:42 PM
automated network backup hinoiri Linux - Networking 1 12-03-2002 11:40 PM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration