You are not logged in.

#1 2009-06-14 02:44:26

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Backup script - running at boot

Here's the scenario...I need to backup my server. About 1TB of data.

I have some old hardware, Wake on LAN compliant, and 1.5TB of store on my 'backup' system. So...

Server sends WoL signal to backup system. Once per week say, Tuesday @ 6pm <- cron job on server
Backup boots, runs a script which rsyncs the servers storage to the backup storage, sends me an e-mail (or at least writes a log back to the server I can check) then shuts down. (Until next Tuesday anyways)

Where should this script go? I'm thinking perhaps in the inttab file. I'm not sure if putting

x:3:wait:backup_script.sh

would work. Or perhaps I just write the script IN the inittab file.

Thoughts?


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#2 2009-06-14 08:15:55

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Backup script - running at boot

/etc/rc.local

Offline

Board footer

Powered by FluxBB