Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Dhcpd/backup help, Trouble with a backupbox
ruddernz
post Jan 26 2006, 02:26 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 26-January 06
Member No.: 6,006



Hi there, having problem running a backup script my old boss made. It worked fine till one day the network card crapped out.
The backupbox was 10.0.10.4 and used the following script to backup data from the main server

backup.sh (on main server)
DATE='date +%d%b%Y`
echo $DATE
ssh backupbox "mkdir -p /home/backup/$DATE/home"
for x in /home/*; do
nice --adjustment=19 tar zcf - $x | ssh backupbox "cat | split -b1024m - /home/backup/$DATE/$x.tgz."
done

Also old dhcpd.conf used to be

.....
host backupbox {
hardware ethernet 00.23.A2.23.14.32(example)
fixed address 10.0.10.4

}
....

When i put the new network card in the backupbox it changed its ip to 10.0.10.61 and has a new hardware number to. So i changed the dhcpd.conf to

....
host backupbox {
hardware ethernet 00.35.A3.11.22.45(example)
fixed address 10.0.10.61

}
.....

Restarted the dhcpd , tried stop the start also, but whenever the script, or pinging 'backupbox' happens it still is looking for 10.0.10.4
Also tried changing the backup script too as below but it doesn't go now either.

backup.sh
DATE='date +%d%b%Y`
echo $DATE
ssh 10.0.10.61 "mkdir -p /home/backup/$DATE/home"
for x in /home/*; do
nice --adjustment=19 tar zcf - $x | ssh 10.0.10.61 "cat | split -b1024m - /home/backup/$DATE/$x.tgz."
done

Can ping/ssh into 10.0.10.61 also. Would there be another file or something else i have to restart to get backupbox to the right ip. Dont know alot about linux either hehe.
Thx

ruddernz
Go to the top of the page
 
+Quote Post
Robert83
post Jan 27 2006, 08:12 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

maybe , /etc/hosts file contains some entries for the other backup host?

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 03:12 AM