Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-15-2009, 11:37 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2009
Posts: 1
Rep:
|
how to move files from windows server to linux server by script
Hi,
I would like to move a directory from a windows box to linux box. Both have user names and passwords that we use. For example I use securecrt to ssh in the linux with a username/password and I use windows remote desktop to login to the windows box.
How do I do this and where do I run this script from?
Thanks
Anup
|
|
|
|
01-15-2009, 12:39 PM
|
#2
|
|
Member
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 147
Rep:
|
Investigate NFS (network file system) usable by both OS's. This allows you to mount a remote directory the same way you would mount a cdrom, etc. It requires configuration at both ends, but once set up the commands are fairly simple and you should easily be able to write a script to mount the "share", copy, and dismount it.
|
|
|
|
01-15-2009, 12:40 PM
|
#3
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,817
|
Quote:
Originally Posted by topsy999
Hi,
I would like to move a directory from a windows box to linux box. Both have user names and passwords that we use. For example I use securecrt to ssh in the linux with a username/password and I use windows remote desktop to login to the windows box.
How do I do this and where do I run this script from?
Thanks
Anup
|
You can do it from either side, using whatever you want. Your question is kind of vague, and has many answers. - You can either use smbclient/smbmount, to mount a shared Windows folder on your Linux system, and use a Linux script (again, many answers; bash, perl, etc....), to copy the files/folders.
- You can set Linux up to have an NFS share, and use a Windows NFS client to mount it, and use a Windows script (????) to copy the files....
- You can setup Samba on Linux, and just map a network drive from Windows to Linux, and copy the files via script (???)
- You can use SCP from either system, to copy the directory over via script (again, written in whatever you want, on either system)
Short answer: you can run the script from either Windows or Linux, and there are lots of ways to mount/map a network drive, or copy files. None are necessarily any better or worse than any other, without knowing alot more. What's your programming skill set like? What languages? How much scripting have you done? Do you know how to set up/map network services? How often is this done?
Analyze your requirements first.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:55 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|