Best Way To Move Public_html From Server To Server Using SSH
May 21, 2008
I'm trying to move all files in the public_html folder from one server to the other. The way I used to do it was download all the files to my computer, then upload them again to the new server. This is a hassle and time consuming, obviously.
My question is, what is the SSH command to do the following:
- Zip the public_html folder
- Move or Copy zipped file from server #1 to server #2
- Unzip it the public_html folder
I figure this is the easiest way to do what I'm trying to do, unless you know of a better and faster way.
I have recently registered a new dedicated server, I am trying to move some sites over. Essentially, what I am trying to do is copy the public_html folder from one server to another.
I have root access on both accounts, I have managed to move the whole home folder from the old to the new, but I guess I would need to download all 2gigs worth of data then upload again, or is it possible to extract only the information you need from the compressed backup.
I am thinking that specifying data from an uncompressed folder wouldn't be possilbe, so, is there a way of moving certain folders from one server to another via SSH?
I want to move around 20Gb of files from one shared hosting account with custom contraol panel to a cpanel VPS.
Is there anyway of transferring all the files to new host without downloading and uploading to the new host. Coz i have normal DSL and 20 GB downloading and uploading can take years.
There are some forum files CHMOD to specific values if you can transfer them without resetting them in new host also cool.
I'm going to be moving to a new server soon. Does anyone have a list, or recommended reading describing what one needs to do when moving to a new server?
I can't seem to find any info on this.. probably because i'm not wording it correctly
What is the fastest way to move all accounts from old servers to new servers with minimum downtime for customers' websites? Both servers are using WHM/Cpanel and i need to keep reseller priviledges and packages also,which system files should i copy to new server?
I've been with LayeredTech and my yearly renewal is up. Their pricing went up significantly, so I'm shopping at SoftLayer amongst others. My site gets roughly 700k unique visitors and 1.8 million pageviews. These numbers will likely go up. I run vBulletin and Joomla dbs. I have two identical servers (one has cPanel). They are configured:
The webserver uses Litespeed as an apache replacement.
Q: They are offering upgrades to either Xeon 5320 or 5335. Does anyone have a recommendation on either?
Q: I've heard that database servers don't necessarily need as much spec wise as webservers. Should I upgrade my webserver? Downgrade the mySQL server?
Unfortunately, I need to make this move today to get the pricing and put the wheels in motion, so I don't get billed by Layered Tech for 1 year of service.
I have purchaseed server hosting with with domain, now I want to move this site on another server I asked my old server administrator to give domain registration detail but he said he can't because there are lot more site he had registered from that account Can any one give me solution on this?
i have my own box for my forum .. now i shared my box with friend's , but in reall they a freak friend's , just to be in safe brother, am looking to know what function i can disable in php.ini or any problem/tool to prevent anybody / attacker * nobody* permission to move in the server via his shell script..
as we know some attacker's use them own php-shell to hack site's * shared hosting *, so they can move to any account after they know the user account name * /etc/passwd * .. so as i say before is there any good functions to prevent these attacker to move in the server? so i can disable it .. or install any good tool * else modsecurity * in the system to prevent them *nobody* of that?
How can I manually move a Xen VM from one box to the other as I cannot use the "Switch Server" option due to all memory and drive space being used up on the source box?
I was just wondering is it possible to move a directory to another server through SSH?
I bought a website a few weeks ago and I have all the files on the server except 30gb of content, now I've tried to put the folder into a tar archive but every time I try it brings up this error:
So I need a way to drag that folder from the old server to my new server through SSH because it will take me ages downloading and uploading all the content.
I'm a programmer at a company, and since I'm the only technical inclined person I have been given the responsibility of a "server" move - even though I'm a bit on the deep end here.
At the moment we have a shared hosting solution were we have our email and an ASP.NET application. We need better performance and thus we are moving to a dedicated server at ServerBeach.
I need to install our app at the dedicated server (that's the easy part), and then I need to setup Exchange Server (hard part) and then also obviously move the domain so it points at the new domain.
I have never ever installed Exchange on a server and I've heard it's a real PITA.
My checklist is this:
Install db Install app Make a redirect from the old server place to the new server Set up Exchange Server 2007 Point the domain to the new place.
I'm the process of reading a 172-page long guide from MS on how to installing Exchange 2007, but I'd be interested in hearing any hints and tips on this.
I got an idea that using r1soft CDP to move server, since it provides restoring data to a different server. But I never used it, not sure if it is doable.
Any one did this before? any requirements (software/hardware) for new server that will be moved in?
I have two dedicated server, and I want move a domain from one to the other.
Although I changed the name server 3 or 4 weeks ago, still some mails hit to old server (this can be checked after POP3 login with IP address of old server).
Most of mail reach to a new server but still some to old.
if this would be propagation problem with ISP or something wrong with DNS set up on the server?
Only just started designing sites for clients as an add-on to promotional work, all of which are on shared servers that clients have organised for themselves, so all we do is Ftp content to the servers when required. However, we now have a client who wants to use video on their site, which, I understand, requires a dedicated server if we do not want to use a video hosting service (is there a video hosting service that does not demand credit when the video is run?).
The move to a dedicated server is a step into the unknown for us. If we have a dedicated server, does this give us the potential to host other client sites on it? What should we be looking for in terms of bandwidth, transfer rates, etc? Can anyone recommend good video streaming software? What are the potential pitfalls?
Is there a way to backup Plesk and all configuration, databases, websites and restore to a new server with new IP's easily?
We want to move a Plesk installation from one host to our local data center where we will install Plesk locally. We are running Plesk on Virtuozzo at the current installation.
to move 14 servers from one facility in the Westin Building to another. IPs are changing too.
Any nuggets of wisdom to share on things that I need to make sure happen for the move to be successful?
Here is my list so far:
- lower TTLs on A records in DNS to 600 seconds at least 24 hours before move. - prepare to update IPs in config files for each server for networking, firewall, email servers, apache configs andresolv.confs. - ensure backup MX is ready to handle the load.
A chicken or egg type of problem with potential to escalate into an egg on the face problem.
I have two VPS accounts with PowerVPS, which we need to move to one new VPS account. Problem is I'm not sure how to handle the DNS move or settings to minimise downtime.
Currently the DNS is spread over the two VPS accounts. How do we keep the same DNS names and move to one new VPS without dramas?
PS. Before you say "ask PowerVPS", they don't support DNS config on two VPS accounts.
we're a webdesign company who also sell hosting (white labled). we have over 500 websites hosted with a company (based at telehouse in london - which is a good selling point for us when selling hosting packages). Theyve been really good (reliable servers, good support, good control panel etc...). Theyve also won awards for the reliability of their servers. Unfortunatley, over the past year we've noticed theyve raised their charges by quite a bit and the support has been very poor.
My question is: does anyone reccommend a company we can move all our sites to? this is obviously business critical (not only for us but for all our clients too!), and so we want to be absolutely certain of the company and what they can offer before we move over everything.
We've thought about a dedicated server with 1&1. It would be a fraction of the cost, but I always believe in 'you get what you pay for'. could this be the case here?
way to move data from one server to another? I have root access to both my servers, but I'm not sure how I would move one entire domain without having to FTP it. The databases I can do manually by importing a dump to the new server. I'm just wondering about the files itself.
Lots of things have improved in the last 5 or so years with regards to hosting.. faster hardware, improved control panels, cheaper bandwidth.. but the ability to keep your eye on your box whilst out and about is definitely amongst them I'd say.
So share your tech tips for when you're not at your desktop for monitoring your sites.
Key hardware: My iPhone. 3G is prevalent in my locality, but the deal on o2 means I also get free access to the two largest UK public wifi hotspots - TheCloud and BT OpenZone. Whilst some of these are free anyway (such as ones in pubs) being able to walk through town whilst on a wifi connection can be really useful if the 3G is lagging or just not there.
Software:
Pingdom - It's not the flashiest of all apps, but it tells you what you need to know - is the server up?! It'll echo all your reports for all servers into one quick and easy screen. I really hope Pingdom puts even more time and effort into this, it could make the service unbeatable with a few more features. The app is free too, which is a bonus.
TouchTerm - there's a bunch of SSH clients for the iPhone out there, I've not had chance to try any of the others but will do at some point. All my accounts are bookmarked in and I can replicate whatever I need to with ease. I've installed software and configured it with relative ease just using the touch keypad. It was either free or at most a dollar or two.
iStat - The software/server combination used to be Mac only but someone has ported the server side over to *nix now and it runs pretty well. I'm having issues with one of my boxes showing it's bandwidth usage but I'll look more into that. Live CPU/Memory figures AND graphing?! Very impressive, and if you're doing face to face with your client it's bound to be a good thing to show off (make sure it's working first tho!!). It was £1.19/$1.99 on promotion when I bought it, should still be for a little more.
Critical email accounts IMAP'd - all my key accounts are on 15minute checks, and I'll be making an emergency PUSH account for when time is very much of the essence. Having instant access to email is absolutely essential on a handheld device these days, and the iPhone does a pretty neat job of it.
EverNote - great note syncing between various boxes. No more having to ring people to jump on my laptop to read me out an IP address or similar ever again.
I can't find any straight answers when searching Google. I've been stuck in a what has become a nightmare server move for about 2 weeks now.
After finally getting a mysql.sock issue fixed I can get the MYSQL dbs over to the new server but it appears that their permissions need to be changed. Is there a way to handle this from the root level? I have roughly 120 dbs to process
I am moving from a VPS to a dedicated server - both have root access.
i want to move to a new server i have plesk on my current server and i'll have it on the new server i think, is there a feature in there that allows you to transfer information to the new server?
i think when i had cpanel the webhost manager allowed me to do this
Is there a way to tar a compiled apache/php installation and move it to another identical server?
If on the first server I specify all the configure options for both apache and php to point to /usr/local/apache2 for example, and then tar apache2 dir and untar it on another server will everything work just like it should? Or do I need to compile apache/php from scratch on the second server.
It would be nice to just be able push the apache/php tar file on to the new provisioned server and be ready to go.
Has anyone done this before, what is the best way to do this and are there any issues to look for.