TheRipper Posted October 20, 2006 Share Posted October 20, 2006 I had a coder that wrote mine in for me but honestly not sure what all he did.This looks much simpler.I am copying it from a support forum.Not my code but they posted it for free so geuss it is cool. The following scripts were provided from scanman20. Site Backup via Cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. MySQL backup via cron - Emailed to You You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. MySQL backup via cron - FTPed to You You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Please note that all scripts should be with a .php extension, the file should have 755 permissions, and you would also need to not only change the first few variables to those of your site setup but also add a cron job in Cpanel with a path to the script such as "php /home/username/path-to-the-php-script" (without the "" and replacing path-to-the-php-script with your actual path to it). It looks as if there were a few bugs for a few people and some not.Most here can figure it out but here is the link to where it is posted at so you can see there qeustions and answers. http://www.lunarforums.com/forum/index. ... ic=22118.0 I back my site up to my email and to the site and to a extra email every 6 hours.It saved me since my host service did not do what they claimed. Quote Link to comment Share on other sites More sharing options...
AtmaWeapon Posted January 18, 2007 Share Posted January 18, 2007 Re: auto backup your site. Warning: file(): Unable to access backup-2007-01-17.sql.gz in /usr/local/psa/home/vhosts/blazingpistols.COM/httpdocs/sqlbackup.php on line 20 Warning: file(backup-2007-01-17.sql.gz): failed to open stream: Invalid argument in /usr/local/psa/home/vhosts/blazingpistols.COM/httpdocs/sqlbackup.php on line 20 Warning: implode(): Bad arguments. in /usr/local/psa/home/vhosts/blazingpistols.COM/httpdocs/sqlbackup.php on line 20 Warning: unlink(backup-2007-01-17.sql.gz): No such file or directory in /usr/local/psa/home/vhosts/blazingpistols.COM/httpdocs/sqlbackup.php on line 41 it dont wwork Quote Link to comment Share on other sites More sharing options...
Phases Posted February 3, 2007 Share Posted February 3, 2007 Re: auto backup your site. Well - you've written plenty of superior mods... you should be able to fix it and resell - right? Quote Link to comment Share on other sites More sharing options...
Phases Posted February 3, 2007 Share Posted February 3, 2007 Re: auto backup your site. BTW - TheRipper... thanks... slight change to match my host's configuration... and it worked like a champ. Quote Link to comment Share on other sites More sharing options...
AtmaWeapon Posted February 11, 2007 Share Posted February 11, 2007 Re: auto backup your site. i dont feel like wasten my time with it i got my sites already set up to back up each nigt and no i dont resell other peoples mods Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted July 16, 2007 Share Posted July 16, 2007 Re: [site tools] auto backup your site what do u name the files Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted August 18, 2007 Share Posted August 18, 2007 Re: [site tools] auto backup your site Ok these are the filenames in order from first to last. mydogislazy.php mydogisfat.php mydogisemo.php If that dosen't work then idk wat to tell you... :mrgreen: Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted August 18, 2007 Share Posted August 18, 2007 Re: [site tools] auto backup your site :| Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted August 19, 2007 Share Posted August 19, 2007 Re: [site tools] auto backup your site You can name the files anything you want. Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted August 19, 2007 Share Posted August 19, 2007 Re: [site tools] auto backup your site o ok thanks for puttin it in a better way for me Quote Link to comment Share on other sites More sharing options...
3XTR3M3 Posted August 20, 2007 Share Posted August 20, 2007 Re: [site tools] auto backup your site When you Backup your site lol its like every file but you ownly really want public_html lol and maybe ftp and you cant choose an exact folder i made it any ways so it backups my site automatically every week and send it to my email incase i get hacked lol Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted August 22, 2007 Share Posted August 22, 2007 Re: [site tools] auto backup your site Lol that wouldn't work for me. I store backups of my computer on my server so an E-Mail backup would take down MSN. Quote Link to comment Share on other sites More sharing options...
Vorless DarkChaos Posted October 29, 2007 Share Posted October 29, 2007 Re: [site tools] auto backup your site You can try to contact TheRipper With Contact informations on His profile But i do not think that will work TheRipper will never be Back TheRipper Game is Gone For Good Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted October 29, 2007 Share Posted October 29, 2007 Re: [site tools] auto backup your site o ok thanks for puttin it in a better way for me Yeah but wasn't my way totally awesome? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted October 29, 2007 Share Posted October 29, 2007 Re: [site tools] auto backup your site I like this mod, Daily SQL backup's and home directory on desktop. Even if i am hacked.. I can restore the site in minutes ^_^. Quote Link to comment Share on other sites More sharing options...
Klikoka Posted November 4, 2007 Share Posted November 4, 2007 Re: [site tools] auto backup your site me too nice thought :-D :-D Quote Link to comment Share on other sites More sharing options...
Ragnar Posted April 17, 2008 Share Posted April 17, 2008 Re: [site tools] auto backup your site You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. which is $data = chunk_split(base64_encode(implode("", file($filename)))); Everything works except the script doing the mySQL command to create the back-up. I've tried the email, ftp, and cron version. I even tried changing $command = "mysqldump -u$dbuser --p$dbpwd $dbname > $filename"; to $command = "mysqldump -uroot -pXXXXXXXX clan > /home/virtual/site1/fst/var/www/html/back-ups/clan-4-16-08.sql"; the exact code I use to manually make back-ups. Does something else need to be done to give permission for the back-up to be made? Files do have 755 permissions. Edit: Duh!!!! Helps to have the directory where the file will be temporarily, be chmod 777!!!! Quote Link to comment Share on other sites More sharing options...
XCU53S Posted May 12, 2008 Share Posted May 12, 2008 Re: [site tools] auto backup your site yep the MySQL command doesnt seem to work i get the same error as above :roll: Quote Link to comment Share on other sites More sharing options...
Ragnar Posted May 13, 2008 Share Posted May 13, 2008 Re: [site tools] auto backup your site Take a look at the last part of my post. chmod 777 Directory with back-up files has to have permission to create the file for it to exist. No permission, there for no such file error!!! Quote Link to comment Share on other sites More sharing options...
~Destiny-Gaming~ Posted May 13, 2008 Share Posted May 13, 2008 Re: [site tools] auto backup your site Wow This Is Good Thanks My Freind! Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 13, 2008 Share Posted May 13, 2008 Re: [site tools] auto backup your site Well the mysqldump command is only partially useful here... One particular site I've tested this one for example, the command takes just under 5 seconds to run - fast you say? Not in the slightest. In five seconds several tables could be changed resulting in an inconsistent snapshot of the data. Now, if you could convert your tables to use a transaction safe database, then no problem. Well, almost no problem. Now there be a slightly longer time delay, however you can get a consistent snapshot. Okay, so take the site off-line at new-day for 10 seconds, perform the dump - that might work, but I dislike taking anything off-line for a mere backup. Solutions? Well there are a few stable solutions - and they are not difficult to figure out. Think about what data you need to back up - i.e. what changes often and what doesn't, for the more experienced of you - have a look at clustering. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.