![]() |
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 |
|
Quote:
|
are you colocated or do you have an admin?
do you have root to your server? |
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.
|
Quote:
|
icq me i'll give you a hand
|
342500546 -- my sig is broken
|
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) |
contact us at [email protected]
|
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