Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-29-2008, 01:02 PM
roger's Avatar
roger roger is offline
Senior Member
 
Join Date: Sep 2007
Posts: 270
Question SSH/FTP command

Does anyone know what the command in SSH would be to (upload) recursively ftp a copy of all the contents of /backups on IP of server "A" out to /backups on IP of server "B"? When SSHing into server "A".

Or should I log into server "B" and download from "A"?

Thanks.
Reply With Quote
  #2  
Old 10-29-2008, 01:47 PM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,954
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default Re: SSH/FTP command

you could do something like this:

# cd /home/backups
HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: SSH wget and mirror file copy (super fast)

Just running that command in your /home would rysnc all of it to the other location.
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #3  
Old 10-30-2008, 09:51 AM
roger's Avatar
roger roger is offline
Senior Member
 
Join Date: Sep 2007
Posts: 270
Default Re: SSH/FTP command

Quote:
Originally Posted by lnxcode View Post
you could do something like this:

# cd /home/backups
HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: SSH wget and mirror file copy (super fast)

Just running that command in your /home would rysnc all of it to the other location.
Ah, that's nice, thank you.

Do you know of any scripts that will do an auto export of each MySQL on the server, maybe using cron or something like that? - Thanks.
Reply With Quote
  #4  
Old 10-30-2008, 10:25 AM
roger's Avatar
roger roger is offline
Senior Member
 
Join Date: Sep 2007
Posts: 270
Default Re: SSH/FTP command

Oh oh... /backups are in root of the VPS (above home, etc.) Wget cannot access this? Wget can only access a directory within home - So, not working here.

The "backups" are the ones created by cPanel at night (daily) and include the full and per account MySQL backups as well.

Can I use SSH to "send" the to another server (from my VPS's to my dedicated)?
Is there something that would work like a "wput" (if we had a wput)?

Thanks.

** Update **
Oh gosh, there really is a wput!! Check this out: Home of wput
Is there a way we can get this installed on the VPS's and Dedicated's? Or, more to the point, just a blurb in the knowledge base telling us how to install it? Is that possible? Will it be able to upload files above /home, if we first login via root/ssh?

Last edited by roger; 10-30-2008 at 10:28 AM. Reason: Update
Reply With Quote
Reply

Tags
command, ssh or ftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 04:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.