Web Hosting Talk







View Full Version : Backup script


code_renegade
03-02-2003, 12:02 PM
Hey guys, I'm interested in hearing what backup scripts do you all use for a harddisk to harddisk backup within the same server? I've looked around, but would like to hear some user comments :)

serial
03-02-2003, 12:38 PM
What Operating System are you using? Do you have a control panel installed? Do you have a second hard drive installed in the system?

tkchan
03-02-2003, 01:24 PM
You may try something like this:

(tar -clf - -C / . | tar xpf - -C /drive2) > /drive2/backup.log 2>&1

The above automatically mirror your drive1 to drive2

drhonk
03-02-2003, 01:26 PM
Use rsync .. its better.

:)

tkchan
03-02-2003, 01:36 PM
hehe...


rsync -azb / /drive2

code_renegade
03-03-2003, 09:11 AM
It's a Redhat 7.2, with an identical 2nd harddrive installed.

Anyone wants to show me the URL to see the mentioned scripts? ;)

fastservers_net
03-03-2003, 09:18 AM
http://rsync.samba.org/

code_renegade
03-03-2003, 10:29 AM
Ah - it looks perfect.

Thank you - very much obliged :)