Help - Search - Members - Calendar
Full Version: Dhcpd/backup help
Linuxhelp > Support > Technical Support
ruddernz
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
Robert83
Hi,

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

Sincerely
Robert B
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.