Copy everything from remote Linux to external hard drive in windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Copy everything from remote Linux to external hard drive in windows
# 1  
Old 02-21-2013
Copy everything from remote Linux to external hard drive in windows

Hi,

I`m trying to copy an entire directory(with numerous files, folders and subfolders etc, a content size of 500gigs) from a linux machine running Red Hat Enterprise Linux 6 to an external hard drive on my windows.

I downloaded and installed psftp on my windows and I can login using psftp from my local cmdand see my folder in remote linux machine. How do I create a backup of the entire folder? I browsed through some of the ftp commands like mget but none seems to work right.


Please guide me.

# 2  
Old 02-21-2013
rsync would have been more appropriate than sftp. There is not a recursive copy command for scp/sftp that I know of.
# 3  
Old 02-21-2013
From what I read, rsync will only work with cygwin, is there another way to do this using windows cmd?
# 4  
Old 02-21-2013
Quote:
Originally Posted by newbie83
From what I read, rsync will only work with cygwin, is there another way to do this using windows cmd?
Windows cmd is nearly useless. It's extremely primitive, essentially, it's MS-DOS, straight out of the 1980's.

Rsync plus cygwin is your best solution. Why wouldn't you want to use cygwin?
This User Gave Thanks to lupin..the..3rd For This Post:
# 5  
Old 02-21-2013
Quote:
Originally Posted by lupin..the..3rd
Windows cmd is nearly useless. It's extremely primitive, essentially, it's MS-DOS, straight out of the 1980's.

Rsync plus cygwin is your best solution. Why wouldn't you want to use cygwin?
I have to ask for permissions to install anything in the machines..does rsync need to be installed in the remote machine as well ?
# 6  
Old 02-21-2013
You get pretty good pipelining with something like
Code:
cd  source_dir
find * | cpio -oaH crc | bzip2 -9 | ssh host 'cd target_dir
bunzip2 | cpio -idmH crc'

but maybe with gzip -1 or compress not bzip2. Disks and CPUs are so much faster than networks. Cygwin could ssh pull from unix, just invert the ssh part. If you have rsh/remsh, you get to skip the encryption delay/overhead.
# 7  
Old 02-21-2013
Quote:
Originally Posted by newbie83
I have to ask for permissions to install anything in the machines..does rsync need to be installed in the remote machine as well ?
If it's okay to have it controlled from the Windows end, and have the rsync server on linux, you could use grsync.
This User Gave Thanks to Corona688 For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

External hard drive

I have connected an external hard drive. I can't find it. Both ls /media, fdisk -l and ls /dev show nothing. TIA (3 Replies)
Discussion started by: Meow613
3 Replies

2. Shell Programming and Scripting

I want to copy all files of a said type on my external hard drive

My code is this, what I'm trying to accomplish is to make a list of all pdf documents in my computer and then copy all of those documents to my external hard drive in a directory mkdir /Volumes/Hardrive-1/allpdf echo "File Locations" > /Volumes/Hardrive-1/allpdf/FileLocations.txt mdfind pdf... (2 Replies)
Discussion started by: darpness
2 Replies

3. Ubuntu

How to install Ubuntu11 in external Hard drive

Hi Guys.. I want to install Linux on my portable hard drive. I created a 20GB partition in my hard drive for linux, Now I want to make it bootable mean when I connect it to system n start the system it will start the LINUX and when start without usb-hard drive it should start the windows. ... (3 Replies)
Discussion started by: atul9806
3 Replies

4. Solaris

Boot Solaris off of an old external hard drive

Hi Folks, First a little background, I am working on a ship that operates in the Indian Ocean and Persian/Arabian gulf area. We had a Sunblade 2000 that finally died. The Video board burned up and I guess damaged the mother board. So we ordered 2 rebuilt 2000s one as a spare. Due to mounting... (1 Reply)
Discussion started by: Sean.kelly
1 Replies

5. Solaris

USB External Hard Drive for Solaris 10 Sparc

Hi- I would like to know if anyone has used any USB External Hard Drive, about 500/750GB or 1TB, with any of the Solaris 10 "SPARC" systems. Not on intel nor amd platform. I'm looking for the compatible drive and found a few listed on Sun solaris ready page, but I'd like to have inputs from... (3 Replies)
Discussion started by: agfa_109
3 Replies

6. HP-UX

Mounting an external parallel hard drive

Can anyone please walk me through how to mount an external parallel (or scsi) hard drive in visualize C3000 machine? I also would like to mount "/var/sallie" directory in that external drive. My "/var/sallie" directory is running out of space so I would like to mount an external hard drive so that... (0 Replies)
Discussion started by: sallysallie
0 Replies

7. Ubuntu

External Hard drive won't mount

i have a Simple Tech hard drive that i use between two computers. it is formatted to ntfs. i have a dell desktop with Ubuntu 7.10 and Ubuntu 8.04 and Windows XP Home. and i have a laptop with Ubuntu 7.10 and Ubuntu 8.04. the laptop recognizes the hard drive on both 8.04 and 7.10 but my desktop... (9 Replies)
Discussion started by: Texasone
9 Replies

8. UNIX for Advanced & Expert Users

How to install Linux on an external 320 gigabyte hard drive

Hi all, I would to know if I can install Linux on an external 320 gigabyte hard drive..I have Windows XP on my internal hard drive which is 80 GB , but this installation on 320 external HDD is for testing purpose If it is possible to install Linux on the external drive, will it cause any... (5 Replies)
Discussion started by: bsandeep_80
5 Replies

9. UNIX for Dummies Questions & Answers

External SCSI hard drive

Someone gave me a small external SCSI hard drive for my SunOS 5.8 test system. How do I make Unix see the hard drive? (2 Replies)
Discussion started by: FredSmith
2 Replies

10. UNIX for Dummies Questions & Answers

listing directories of an external hard drive

How do I do it? I have a mac and a pc and am having a time cd-ing to the external drive. (2 Replies)
Discussion started by: theGooch
2 Replies
Login or Register to Ask a Question