Solved

Moving Directory from Linux box to Windows box

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now