GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   anyone good with cronjobs? (https://gfy.com/showthread.php?t=587879)

marty 03-17-2006 03:27 PM

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

FrankWhite 03-17-2006 03:28 PM

http://www.adminschoice.com/docs/crontab.htm

marty 03-17-2006 03:34 PM

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.... :helpme

PR_EZEKIEL 03-17-2006 03:36 PM

are you colocated or do you have an admin?
do you have root to your server?

G-Rotica 03-17-2006 03:48 PM

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.

marty 03-17-2006 03:49 PM

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.

mrkris 03-17-2006 03:53 PM

icq me i'll give you a hand

mrkris 03-17-2006 03:54 PM

342500546 -- my sig is broken

PR_EZEKIEL 03-17-2006 03:59 PM

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)

skoalman 03-17-2006 04:32 PM

contact us at [email protected]

marty 03-17-2006 04:34 PM

Thank you guys, it's all good now
Thank you mrkris :thumbsup


All times are GMT -7. The time now is 04:19 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123