hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Cron jobs for backups ?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Cron jobs for backups ?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-22-2000, 04:04 PM
CRego3D CRego3D is offline
Web Hosting Master
 
Join Date: Sep 2000
Posts: 1,615
HI everybody

Anybody know of any good cron jobs to backup the system files (/var /usr/ /etc) as well as each customer (in /home) individually to another HD ?

Thanks for any help

__________________
Carlos Rego
OnApp CVO

The Cloud Engine

Reply With Quote


Sponsored Links
  #2  
Old 11-23-2000, 08:24 PM
jtan15 jtan15 is offline
Aspiring Evangelist
 
Join Date: Jul 2000
Posts: 382
Well, you could just as easily program a shell script to do it and have a cron job execute that shell script every so often. E.g.

#!/bin/sh

mount /dev/hdb /backup
cp /var /backup/var -R
cp /usr /backup/usr -R
cp /etc /backup/etc -R
umount /dev/hdb

That should do the trick. Basically it just mounts the drive, and copies all of the directories onto the other hardrive. You might have to add an option or two to the cp command to overwrite old files. The -R option should copy the directories though.

Reply With Quote
  #3  
Old 11-24-2000, 12:01 AM
Travis Travis is offline
Web Hosting Guru
 
Join Date: Oct 2000
Posts: 337
Just a suggestion - you may want to replace that -R option with a -ax. That combines a number of options, including -R, and some important others. Most notably, it will preserve the ownership and permissions of files.


Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Jelastic Launches Version 1.9.1 of Java and PHP Hosting Platform Web Hosting News 2013-05-21 09:39:09
Web Hosting Sales and Promos Roundup – June 22, 2012 Web Hosting News 2012-06-22 16:36:15
Web Host Shinjiru Technology Offers R1Soft CDP Backup Web Hosting News 2012-01-17 17:00:45
Software Developer Softaculous Launches Softaculous Auto Installer Version 3.8 Web Hosting News 2011-11-25 15:34:49
Web Host Korea Server Hosting Offers R1Soft Backup and Recovery Web Hosting News 2011-08-31 19:44:14


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?