|   |   |   | ||||
| 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. | 
|    | 
| 
 | |||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
|  | Thread Tools | 
|  03-17-2006, 03:27 PM | #1 | 
| 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 | 
|   |           | 
|  03-17-2006, 03:28 PM | #2 | 
| Confirmed User Join Date: Nov 2002 Location: nyc 
					Posts: 3,540
				 | |
|   |           | 
|  03-17-2006, 03:34 PM | #3 | |
| Confirmed User Join Date: Feb 2002 
					Posts: 1,656
				 | Quote: 
  | |
|   |           | 
|  03-17-2006, 03:36 PM | #4 | 
| 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? | 
|   |           | 
|  03-17-2006, 03:48 PM | #5 | 
| 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. 
				__________________   | 
|   |           | 
|  03-17-2006, 03:49 PM | #6 | |
| Confirmed User Join Date: Feb 2002 
					Posts: 1,656
				 | Quote: 
 | |
|   |           | 
|  03-17-2006, 03:53 PM | #7 | 
| Confirmed User Join Date: May 2005 
					Posts: 2,737
				 | icq me i'll give you a hand | 
|   |           | 
|  03-17-2006, 03:54 PM | #8 | 
| Confirmed User Join Date: May 2005 
					Posts: 2,737
				 | 342500546 -- my sig is broken | 
|   |           | 
|  03-17-2006, 03:59 PM | #9 | 
| 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) | 
|   |           | 
|  03-17-2006, 04:32 PM | #10 | 
| Registered User Join Date: Jun 2004 
					Posts: 94
				 | contact us at [email protected] | 
|   |           | 
|  03-17-2006, 04:34 PM | #11 | 
| Confirmed User Join Date: Feb 2002 
					Posts: 1,656
				 | Thank you guys, it's all good now Thank you mrkris  | 
|   |           |