woodp Posted September 6, 2011 Report Share Posted September 6, 2011 To make major changes (theme/content/structure) to a Drupal website, I like to backup and restore the website to a new domain, make the changes and then repeat the backup/restore process to the original domain. This minimizes site "maintenance" time. cPanel makes it easy to backup, but for the restore piece I extract the public_html directory and upload just those files. I've had problems restoring a cPanel backup to a new domain - Extracting just the public_html piece works best for me. Still, 500M sites with thousand of files can take a long time to restore. With SSH, there were options to upload a tarball and extract it, or just rsync the public_html directories back and forth. Without SSH, the only option I'm aware of is painfully slow Filezilla uploads of thousands of files. I'm aware Hawkhost offers SSH upon request, but I'd be requesting it pretty much on a weekly basis for temporary domains and that just seems like more hassle to me and Hawkhost staff than it's worth. So I'm curious if I'm missing something? Is there an faster way to port a cPanel site from one domain to a temporary domain and then back to its original location than my multi-thousand file uploads? Quote Link to comment Share on other sites More sharing options...
Brian Posted September 6, 2011 Report Share Posted September 6, 2011 I may have a solution for you though it requires some account specific details so a public forum isn't the best place for the discussion -- please email [email protected], reference this forum post and then either update this thread or PM me the ticket ID and I'll take a look. Quote Link to comment Share on other sites More sharing options...
woodp Posted September 7, 2011 Author Report Share Posted September 7, 2011 Brian, I just replied to support Quote Link to comment Share on other sites More sharing options...
Brian Posted September 7, 2011 Report Share Posted September 7, 2011 As you know we cleared this up so we're all set here. Thanks for doing that! Quote Link to comment Share on other sites More sharing options...
kitchin Posted April 14, 2013 Report Share Posted April 14, 2013 Reviving this old thread because I have exactly the same issue. I need to migrate directories of files and cannot find a shell SFTP/whatever client to do it. Until recently this worked (for a Worpdress directory): 1. ssh to reseller main account 2. cd temp 3. lftp [email protected] 4. mirror -R wp-content I found out about LFTP from a Stack Exchange thread. But it is now gone from the HawkHost servers. So the current state of affairs on resold accounts is: * ssh: no, unless you open a ticket to request it * rsync: no, requires ssh to accept connection * scp: no, requires ssh to accept connection * sftp: yes, but no command to copy a directory. Neither "get -r" nor "mget" work, as far as I can tell. Maybe write a perl script to get sftp to walk the tree? Is there another shell tool to use? I did a whereis on each ftp client here and found none at HH: http://www.debianadmin.com/list-of-ftp-clients-available-in-linux.html Example: # ftpcopy -bash: ftpcopy: command not found # whereis ftpcopy ftpcopy: Same goes for ncftp, cftp, etc. The reseller account disables some features of WHM so Quote Link to comment Share on other sites More sharing options...
Brian Posted April 15, 2013 Report Share Posted April 15, 2013 I found out about LFTP from a Stack Exchange thread. But it is now gone from the HawkHost servers. Due to some recent changes (namely rolling out CageFS) access to some system libs/utilities may have changed. They're still available we just need to add them into your cage. If you submit a support ticket and reference this thread we *should* (our sysadmins will clarify) be able to get you access again. Quote Link to comment Share on other sites More sharing options...
kitchin Posted April 24, 2013 Report Share Posted April 24, 2013 Thank you! My LFTP techinque is working again. Sorry about the weird formatting at the end of my post. This works, and answers the original question in this thread 1. ssh to reseller main account 2. cd temp [where you have the stuff to transfer out, wp-content] 3. lftp [email protected] 4. mirror -R wp-content 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.
Note: Your post will require moderator approval before it will be visible.