Solved

Moving Directory from Linux box to Windows box

Posted on 2007-11-21
4
187 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

734 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