Solved

Latest option to copy files from Linux to Windows 2008

Posted on 2016-09-23
13
37 Views
Last Modified: 2016-10-13
Hi,
Could you pls advise what are the options I have to copy set of directories/files from Linux to Window 2008 Server with latest advancement in tools/utilities pls?

I have 20 servers and need to copy files on daily basis to all these windows servers from linux

Please note.
1. We can consider using licensing products/util
2. Free util
3. Some people say, install cygwin on target window server and initiate the call from windows after exchange keys
4. Some saying to use pscp from windows
5. Some saying to use rsync after installing cgywin and initiate call from windows

Thanks in advance
0
Comment
Question by:enthuguy
  • 6
  • 2
  • 2
  • +3
13 Comments
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 41813410
it depends on where the shared folders are located, at Linux or Windows side? it can be done in either way for copying files from Linux to Windows.
0
 

Author Comment

by:enthuguy
ID: 41813411
Its on Linux
Thx
0
 
LVL 37

Assisted Solution

by:Bing CISM / CISSP
Bing CISM / CISSP earned 167 total points
ID: 41813415
as the command has to be executed on Windows side (given no shared folder accessible from Windows side, as mentioned), I prefer using XCOPY or ROBOCOPY which can be easily working with Task Scheduler.
0
 
LVL 77

Assisted Solution

by:arnold
arnold earned 167 total points
ID: 41813444
Look at rsync, puppet.  What are these files that need to be copied?
You could add NFS support to the Windows server, or mount the smb share on Linux of a Windows share.
Do all the servers get the same set of files?
Are these independant systems, or members of AD where dfs-r can be setup to handle the synchronization of Giles such that only one copy from the Linux needs to be transferred to one, with dfs-r replicating to all others.



Greater detail is needed. Us there a logic on which basis the files/directories that need to be copied are determined?.

Puppet might be .......
0
 
LVL 24

Expert Comment

by:Dr. Klahn
ID: 41813447
If the files are not high-security items, install an FTP server on the windows target, then set up cron jobs on the linux systems to transfer the files.
0
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 166 total points
ID: 41813469
Is this about a daily backup? Anyway, I would use cron to schedule the copy command from Linux (daily or more often if you like).

I'm assuming you have Samba installed on Linux, if not install it. Use Samba to mount the (remote) windows share to your Linux server(s). Then have the copy command copy from your local Linux path to the mounted windows share.
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:enthuguy
ID: 41813777
Thanks all for your suggestions.

More specific details on the requirement.

1. Would like to transfer file from Linux (push to windows).
2. We have Hudson/Jenkins setup, from where we schedule or trigger (manual) a job which will copy files to target windows server (would prefer rsync way)
3. Currently we don't have samba volume mounted on Linux.
4. This activity is not for taking backup. It’s for deploying new artefacts on all 20 windows servers on requirement basis, e.g weekly once
5. Every time, files will be different, so its not the same set of files to all the servers.

what is the strategy of samba please?
a.      A shared volume is mounted on all the window and also in this Linux server.
b.      So we can copy files on Linux first.
c.      During deployment from Linux, we just execute remote cmd to just use local copy cmd on the target windows server instead of transferring files from Linux to Windows?

Once again thanks :)
0
 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 166 total points
ID: 41813953
The Samba strategy is simple: copy local from your Linux server to a folder (Samba mount).

I'm not that familiar with Jenkins but it should be able to deploy to Windows, right?
0
 
LVL 28

Expert Comment

by:serialband
ID: 41813994
Jenkins can deploy to windows.
0
 

Author Comment

by:enthuguy
ID: 41814124
Jenkins...Yes,  that's the plan
But Jenkins is running on Linux
0
 

Accepted Solution

by:
enthuguy earned 0 total points
ID: 41835024
What i have done on my AWS Linux and Windows instance was.
1. Installed MobaSSH Server on Windows 2012 Server.
2. exchanged rsa keys from above Windows server to Linux
3. Used scp file.bat Administrator@00.38.91.87:/drives/c/app
4. used ssh Administrator@00.38.91.87 "/drives/c/app/file.bat" (to execute bat file which internally executes powershell on remote windows server)
0
 

Author Comment

by:enthuguy
ID: 41835029
thanks all
0
 

Author Closing Comment

by:enthuguy
ID: 41841654
this solution worked well for me
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

863 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

22 Experts available now in Live!

Get 1:1 Help Now