LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2011, 08:32 PM   #1
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Rep: Reputation: 15
Question Use yafc's fxp command to FTP transfer all files from old hosting to new hosting?


Hello,
I have a TON of files to transfer from my old hosting account to my new one. After some digging, it looks like installing and using yafc in termanal would be a great nearly-direct FTP solution for getting files from one place to the other using yafc's fxp command.

Examples I found here:
Quote:
fxp --target=2 foo.tar.gz -o bar.tar.gz

will transfer the remote file foo.tar.gz on the currently active remote server to the remote file bar.tar.gz on the remote server specified with the --target option (in this case the second open connection).

fxp --target=funet *.tar.gz -o foo

will transfer all remote *.tar.gz files to a directory named foo on the host specified with the --target option (in this case 'funet').

fxp -T ftp.stacken.kth.se foo -r -o bar

will transfer the remote file foo to a directory named bar on ftp.stacken.kth.se. If foo is a directory, it will be downloaded recursively.
Sounds great! I'm just really fuzzy on specifics.

While I continue to dig, does anyone have an idea on how to make this happen from start to finish? My goal is to automate this as much as possible for future.

Thanks for the assist in advance!
 
Old 06-22-2011, 01:30 AM   #2
nooneknowme
Member
 
Registered: Feb 2008
Location: Bangalore, India
Posts: 69

Rep: Reputation: 5
Why install new tool when you have scp and rsync inbuilt (usually) by default ?
 
Old 06-22-2011, 08:59 PM   #3
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Doh! Why didn't I think of that.

This might do the trick:

Quote:
scp -r user@server1:/ user@server2:/
Thanks
 
Old 06-22-2011, 09:19 PM   #4
Ultrus
Member
 
Registered: Jan 2006
Posts: 50

Original Poster
Rep: Reputation: 15
wait. scp and rsync are not ftp. At the moment I only have ftp access (part of the reason I'm moving to different hosting). Any thoughts on an ftp solution to download everything via command line?
 
Old 06-23-2011, 03:33 AM   #5
nooneknowme
Member
 
Registered: Feb 2008
Location: Bangalore, India
Posts: 69

Rep: Reputation: 5
If you have the shell on any one side ( your new host ) then you should be able to use "wget". If wget is not working, perhaps you can write a small script to copy via ftp.

If you follow the second approach, the following link may help you script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
do I really need virtual hosting if only hosting one site kustomjs Linux - Server 8 05-22-2008 12:17 PM
cheap hosting v hosting on my home machine rblampain Linux - Security 4 09-22-2007 12:11 AM
LXer: Web Hosting Provider Verizon Business Expands Managed Hosting ... LXer Syndicated Linux News 0 09-17-2006 06:21 AM
LXer: Web Hosting Provider Zen Internet Offer Linux Hosting Trial for 1 ... LXer Syndicated Linux News 0 04-20-2006 09:33 PM
Hosting an FTP dudeman41465 Linux - Software 2 02-27-2006 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration