Linux - NewbieThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I've figured out about half of the problem this time. I've duplicated the directory structure of the Windows machine on the Linux server.
I then proceed with mounting the Windows share on the Linux server. I type the mount command while I'm in Folder1 on the Linux server:
Code:
mount -t smbfs -o username=test,password=test //192.168.1.3/Folder1/Subfolder Subfolder
So far so good. Now I need to rsync and the command for this is
Code:
rsync -va /path/to/src /path/to/dst
But what do I fill in here? I'm guessing path/to/dst is just plain Folder1 on the Linux box. Path/to/src refers to the share on the Windows machine but since I've mounted that share, is path to source = path to destination?
The only problem with rsync for windows is there are some interaction bugs between it and ssh which can cause some flusterating condition to manifest in some cases. I did a lot of research on it at one point and was finally able to determine that the bugs exist because of the way piping is handled in windows and the developers of all the packages (cygwin, ssh port for windows, rsync) all have listed the bug as being with cygwin and a fix is unlikely.
Which is unfortunate. That being said, anything that DOESN'T use cygwin is likely unaffected by it, but its hard to find a ssh and rsync client that don't use it that are open source (and understandably so).
Thanks guys, Works like a charm. Now I need to keep an eye on it. I've read that Rsync sometimes has trouble identifying which files have changed. Perhaps it does not always correctly interpret Windows' archive bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.