Hello, I have a hosting acount at some old server, with 8 gigs of content and some mysql databases. I'd like to know what is the best way of backup all files and transfer them into a new server. Maybe first using TAR for compress all files and then maybe SCP to transfer it ? Can someone please tell me how can i do it, or giving me a howto page ? Thanks
hello to tar directory tar -czvf archive.tgz files/ send files scp myfile username@yournewhost:myfile
Is this server running any sort of control panel? Lots of panels include tools to transfer from one server to another.
If you dont want to pay for the extra 8GB of bandwidth on both of your sites, it's best to compress your files first, then transfer them. It will go a lot faster too. If you have access to the shell, you can use mysqladmin to backup your MySQL databases, then compress those files along with any other content you have. If you don't have shell access, then your control panel should have an option to backup your databases and possibly your content.
have you though about using rsync over ssh it compresses what data it can and if the connection breaks you can resume it (pretty much from where it stoped). something like "rsync -r -e ssh -z -v username@source:/source/path /destination/path
the problem is not bandwitdh.... its difficult to use SCP for 8GB of data.... took 10 hours to transfer half of the data and then ssh connection went down.... maybe i should try rsync...
if the connection is droping, rsync would be the best method it's main use is to "mirror" one location from another it generates a file list, and will only copy changed parts of files, or non exsistant files at the destination.
i'm trying again with scp command, now it should work. For anyone with same problem, do this: 1) $ scp /folder/file-to-tranfer :/folder/file-destination-name > /dev/null 2>&1 2) fill in passwd and press enter 3) Type Control+Z 4) Type "bg" I'll post results when done