Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My current files and directories are hosted with and they don't allow scp over to another host, and I want to get all the pictures for wordpress under wp-content/uploads/* but when I tried sftp -r

#sftp> get -r uploads /www/wp-content/uploads
Invalid flag -r

I want to move from Godaddy to Site5 without scp what else I can use?

Godaddy I'm using shared hosting the 4GH, so not many option left for me

share|improve this question
up vote 1 down vote accepted

Depending on what godaddy / Site5 allow you to do:

  • SFTP: This time archive your files first and then just SFTP the archive
    • tar czvf archive.tar.gz /wp/files-to-archive/*
    • #sftp > get archive.tar.gz
share|improve this answer
Godaddy doesn't support RSYNC and I can't archrive the very large file – Ali Apr 9 '13 at 10:55
How about using something like this plugin to backup your WP and have it email the zip to you. Slight over kill but the uploaded photos should be in there. [link] – Steve N Apr 9 '13 at 11:03
actually I learned that your way really helped! first I was using .zip and that one really bad, so I used .tar.gz and it works like charm! now I have done all the backup – Ali Apr 9 '13 at 14:31

If you're doing this from a unix-like system, and if Godaddy supplies tar, then you can use that to pipe the files through an ssh connection. Basically, from your system you would run:

ssh remotehost 'cd /destination && tar cf - files' | tar xvf -

This avoids having to save the tarfile on the remote host. For more details, see this question.

share|improve this answer
I don't get it. It's done now, but your answer is that suppose to use it just to save it or to transfer it too? because what I was looking for is to tar the file then transfer from Godaddy to anotehr host – Ali May 3 '13 at 14:37
My example shows how to copy a directory tree to your local system without creating an intermediate tarfile. That is what you were trying to do in your original question. – Kenster May 3 '13 at 14:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .