Portal Home > Knowledgebase > Articles Database > manual backup for entire site [PLZ HELP]


manual backup for entire site [PLZ HELP]




Posted by HyperVMart, 12-04-2007, 12:03 PM
hi guys am hosting with servage most such hosts dont provide backup for ur files in case ur moving to other host so i was wondering if i can manually through FTP download my enitre directory including all files (html, jpg, PHP SCRIPTS) and manually reupload them onto the other host i will move to soon will that actually work and for MySql databases i have created a PROPER backups via their auto backup system they only lack backup for the files itself only, MySql is fine will restoring the MySql databases but via a different control panel (CPanel) will it possible?? thx guys

Posted by creaws, 12-04-2007, 01:18 PM
Yes, that should work If you have no control panel in the actual host, you can download your account document root locally and then upload the files to your public_html in your new cPanel host. For mysql if you already made a dump you can then import the .sql files from your phpmyadmin in cpanel. Hope it helps. Regards,

Posted by ServerSurgeon George, 12-04-2007, 01:59 PM
Or if you want to preserve permissions when switching to a new host you can put the following script into the web area and name it for example backup.php: First you'll need to create the "tmp" directory and chmod it to 777 Then execute that script via your browser: http://domain.com/backup.php Wait some time until it gzips everything and then download the gziped backup: http://domain.com/tmp/backup.tar.gz You can upload this to your new cPanel host and excract it using the cPanel File manager. Let me know if you have any issues.

Posted by HyperVMart, 12-04-2007, 02:14 PM
thxxxxxxxx a lot creaws and izghitu u guys are the best but i have a question for "izghitu" ur method works great but could we do it somehow to backup the EVERYTHING but excluding a single directory and its sub-directories? the same thing but just excluding a single directory and its sub-directories of course thx bud

Posted by ServerSurgeon George, 12-04-2007, 02:16 PM
yes you can exclude patterns: tar --exclude=PATTERN -cf tmp/backup.tar *

Posted by HyperVMart, 12-04-2007, 03:48 PM
please excuse my lack of knowledge in this certain field so just to get it straight the exact content of the PHP file will be like this: ?? is this right?

Posted by ServerSurgeon George, 12-04-2007, 03:53 PM
If you want to exclude the directory: images Then it should look like this:

Posted by HyperVMart, 12-07-2007, 02:57 PM
thx bud u made my day

Posted by HyperVMart, 12-07-2007, 03:47 PM
thx bud u made my day hi again sorry to disturb you friend for some reason the file backup result file is only 951 KB in size !??! and it includes only some files NOT ALL it's called: backup.tar.gz i noticed before while the backup was inprogress that the file was getting bigger and bigger till it reached 30 MB in size after that and all of the suddent it dissappeared and got this 951 KB file instead (they got different names though) what's the matter ?!?! thx and sorry to disturb you again

Posted by ServerSurgeon George, 12-07-2007, 03:51 PM
maybe you are exceeding your space quota?

Posted by HyperVMart, 12-08-2007, 08:03 AM
mmmmmm actually no i got over 40% still free what i dont get is that while i was refreshing my "/tmp/" directory for the back up file (via FTP) i WAS getting a file getting bigger and bigger in size and its name was "backup.tar" then all of the sudden it dissappeared and got "backup.tar.gz" instead any help would be appreciated

Posted by HyperVMart, 12-08-2007, 08:06 AM
it seems to be stable now (it seems!) the file is 61.98 MB in size and am attempting to download it and extract hope everything goes soooth wll c...

Posted by HyperVMart, 12-29-2007, 08:04 PM
damn it the passthru("gzip -9 method never works quite well :@ guys i need help!!!!!!!

Posted by HyperVMart, 12-29-2007, 08:06 PM
i remain getting missing files and everytime i try it i get a different file size!!!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Webspace4less.com (Views: 780)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.