Solved

Moving Directory from Linux box to Windows box

Posted on 2007-11-21
4
188 Views
Last Modified: 2013-12-06
I have tried everything i could, but cannot get a large directory (with many subs) moved from my Linux server to a windows 2000 machine. I installed Windows Services for Unix, but the exportfs command isnt working on my particular brand of Linux. I tried RCP but neither file that is needed to turn on RCP on my Linux box is there. I am using SSH to get into the LINUX box.
0
Comment
Question by:tfortin1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 80 total points
ID: 20330835
I'd try the following:

- log on to the Linux box, use

tar -cvzf file.tar.gz basedir

to pack the whole directory as a tarball.

- then, on the Windows machine, copy the file using scp

scp userid@linuxbox:/path/file.tar.gz file.tar.gz

- use WinZip to unpack the tarball.

If yo uneed scp for Win32, get http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

0
 
LVL 1

Expert Comment

by:cipher42
ID: 20330841
Can you use FTP?  That's probably the easiest, other than RCP.  You could also setup samba on the linux box if it's on your local network, but FTP would be quicker and probably "just work."
0
 
LVL 2

Assisted Solution

by:SwassLikeMe
SwassLikeMe earned 45 total points
ID: 20330842
All you have to do is download WinSCP (a free, open source SCP utility), connect to the Linux box from Windows 2000, then copy the directory structure over to Windows through the explorer interface.  It uses SSH to perform it's actions, and is generally enabled in the SSHD configuration file by default on the Linux side.

Another option would be just to tar the directory structure up into one large file, then ftp to the Linux box, download it, then extract on Windows.  The problem with the later is it requires space on the Linux side to archive up all those files and directories into a single file.
0
 

Author Closing Comment

by:tfortin1
ID: 31410465
ftp from windows would work because of the size of the directory, I tried ftp from cmd line and that doesnt allow mv dir.
I will try the tar option with SCP.
0

Featured Post

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question