Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-17-2006, 03:27 PM   #1
marty
Confirmed User
 
Join Date: Feb 2002
Posts: 1,656
anyone good with cronjobs?

Help Please

I need someone to set up a cronjob on one of my sites. I don't understand how they work.

It's for a daily backup of everything on that domain. The site, images and mysql database.

Thanks
ICQ 147571357
marty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:28 PM   #2
FrankWhite
Confirmed User
 
FrankWhite's Avatar
 
Join Date: Nov 2002
Location: nyc
Posts: 3,540
http://www.adminschoice.com/docs/crontab.htm
FrankWhite is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:34 PM   #3
marty
Confirmed User
 
Join Date: Feb 2002
Posts: 1,656
Quote:
Originally Posted by FrankWhite
Thanks but I've already looked at several sites describing crons and I just don't get it. I don't understand what it does, how to code a command or how to access the backup and restore it....
marty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:36 PM   #4
PR_EZEKIEL
Confirmed User
 
Join Date: Feb 2005
Location: On The River
Posts: 134
are you colocated or do you have an admin?
do you have root to your server?
PR_EZEKIEL is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:48 PM   #5
G-Rotica
Confirmed User
 
Industry Role:
Join Date: Aug 2005
Location: Austin, TX
Posts: 4,258
I set up some cron jobs on my virtual site. They never ran, however according to the tech guys they should have. I have an idea how to do it. I'll help if I can.
__________________
G-Rotica is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:49 PM   #6
marty
Confirmed User
 
Join Date: Feb 2002
Posts: 1,656
Quote:
Originally Posted by PR_EZEKIEL
are you colocated or do you have an admin?
do you have root to your server?
I have cronjobs in cPanel and FTP root access if that helps.
marty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:53 PM   #7
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
icq me i'll give you a hand
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:54 PM   #8
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
342500546 -- my sig is broken
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 03:59 PM   #9
PR_EZEKIEL
Confirmed User
 
Join Date: Feb 2005
Location: On The River
Posts: 134
thing with cronjobs is that you can either run scripts like you would from the command line..eg.
0 0 * * * php /usr/local/www/backup.php
or you can run shell commands...
depending on where your data is then your backups could be simple...
0 0 * * * tar czvf /usr/local/www/sitenamedatabasefolder.tag.gz /var/db/mysql/sitedatabasefoldername
30 0 * * * tar czvf /usr/local/www/site.tar.gz /usr/local/www/sitefolder
first one would run at midnight, second one would run at 12:30
you might want to think of writing a little script that backs it up so you have 2 days worth of backups or something. That way you're not just overwriting your backups(just in case something bad happens to everything at 11:59 and you want to make sure you're back up isn't a back up after the shit hit the fan)
PR_EZEKIEL is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 04:32 PM   #10
skoalman
Registered User
 
Join Date: Jun 2004
Posts: 94
contact us at [email protected]
__________________

ICQ - 172146397
skoalman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-17-2006, 04:34 PM   #11
marty
Confirmed User
 
Join Date: Feb 2002
Posts: 1,656
Thank you guys, it's all good now
Thank you mrkris
marty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.