Fastest way to copy file(s) from 2008 server to a Linux box

I need to copy a whole subdirectory with files and subfolders from a w2008r2 server to a linux (debian) box.  It is quite a few gigabytes so I prefer the fastest possible way to do this.  If necessary I can pack the folder and files into an archive, but if they can be copied as separate files/folders I prefer that.  The copy process should overwrite any matching target files / folders with no prompt.

I know the IP address of the target linux box and have a username/password for the target folder

What is the preferred way to do this and which parameters etc do I use to get optimal speed?

Thanks a lot for an elegant solution to this

regards Geir
geir056Asked:
Who is Participating?
 
leadzConnect With a Mentor Commented:
You can use WinSCP for your task. It support script automation and works through native *nix SCP. It is not the fastest way, but can be quite comfortable for crossplatform file exchange.
0
 
Mike ThomasConsultantCommented:
There is a tool called fileboss which you can get a free trial on (but well worth buying too) http://www.theutilityfactory.com/

On the windows box map a drive to the linux share

Run fileboss in copy mode to "copy" the files to the linux box (during hours if you wish)

When you are ready to complete the move disable access to the windows share, enable access to the linux share then run file boss to compare the 2 locations and it will move any added/modified files since your forst copy (which is far far quicker than the original move)

You could even do the copy, then a compare/copy disable/enable shares then another compare/copy



0
 
arichakraCommented:
Use Filezilla FTP client. Connect the Linux machine using FTP & upload files/folders.
http://filezilla-project.org/
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
sandeshjCommented:
You could use ftp to transfer files. Use any of the 2 ways here..

Use the default linux ftp and drag/drop to the ftp location all your files using any windows based ftp client.

If you do not have an ftp instance running in linux, you could install a free ftp server like FileZilla(http://filezilla-project.org/download.php?type=server) or GoldenFTP(http://www.goldenftpserver.com/) on Windows and configure the folder that you need to transfer as your ftp root.
In your linux console go to the the location where you need the files and connect to the ftp server running on windows using the ftp command. then type mget *.*
This would get all the files from windows to linux.
0
 
geir056Author Commented:
Thanks for the suggestions, I prefer to get this done from the command line at the windows server.  I now do it 'manually' using FileZilla, but if possible I would like to make a batch file or vbs script to execute this copying process.

Samba is not installed in the linux box, hence I assume that I cannot map any linux folder to a windows drive letter either??

Thanks for windows command line suggestions

/geir
0
 
Mike ThomasConsultantCommented:
iirc you would need samba installed yes, but I am pretty sure that won't just limit drive mapping but browsing in general.
0
 
leadzCommented:
You can use xcopy tool with /C /D /E /H /R /Yswitches, if the target folder is mounted SMB share

xcopy X:\sourceFolder \\X.X.X.X\targetShare /C /D /E /H /R /Y, where X.X.X.X - IP of your share server
0
 
arichakraCommented:
OK.
Just mount the Windows folder(share) in linux machine & use cp command to copy files. Its much easier to create batch/script in Linux to copy files around. Use the following command to map the Windows share...

mount -t cifs //winserver/share -o username=winuser,password=winuserPassword /mnt
0
 
geir056Author Commented:
to leadz:  See in above post that smb is not installed..

So there is not an easy and 'quick' way to do this from the windows server against a non-smb linux box??

Preferably I did not want to expose a new windows share in this scenario, that's why I want to copy from win to lin...

/geir
0
 
dataflowsysCommented:
You could install the NFS Windows client.

http://support.microsoft.com/kb/324055

This will allow you to setup a folder with a non-SMB share, so it would only be available to linux clients.  From there, you simply use mount -t nfs servername:/whateverthenfssharenameis on the linux box, and copy away using the appopriate switches for overwriting/silently confirming/etc.  Once you're done, simply disable the NFS client on the Windows side (or if you think you'll use it in the future, umount on the linux box and just remove the NFS share on the Windows server).
0
 
geir056Author Commented:
We tried WinSCP and you were right that it wasn't the fastest way, but that was the solution we accepted for the time being.
0
 
geir056Author Commented:
Due to speed limitations it wasn't exactly what we hoped for, but we'll use it for the time being.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.