Jump to content

Recommended Posts

  • Administrators

I have managed backups through GoDaddy. I was working on something and blew away a few files I shouldn't have. That's what I get for thinking I can do something real quick without testing on dev.

 

So I had them restore one of my backups to my server so I can pull the few files out that I needed. Well where they deploy the backup to you can browse via FTP or file manager through cPanel. It's on the root of the server. So I SSH in via Putty and find the location. Now what? I can't really do much as I can't find any solution to download the files from there to my desktop.

 

I ended up finding a copy/move command and moved the folder I needed to a spot that I could FTP to and download.

 

First I zipped up the folder I needed.

 

tar -czf pictures.tar.gz 2012

"pictures.tar.gz" is the filename I chose, "2012" was the folder name.

 

After that I just moved that gzipped file to a ftp location that I could view it.

 

cp pictures.tar.gz /home/website/public_html/dev

 

That was it I then FTP'd to that location and downloaded the gzipped file, extracted what I need and done.

Link to post
Share on other sites

Moving files via ssh is really just renaming them. Say the file is called "/home/pictures.tar", you would just use the rename command to rename it to "~/pictures.tar" and then remove the file from the original directory. There may be a simpler way, but that's the way I've done it since I started linux.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...