kolosy / rsync.net Goto Github PK
View Code? Open in Web Editor NEWport of rsync to .net
port of rsync to .net
Hello,
I am trying to get the .net implementation of rsync up and running but I'm experiencing a few problems. Most of them I figured out on my own but I'm pretty stuck now. The communication between the server and the client has been established because whenever I shut down the server app, the client throws an error but I'm experiencing a problem while sending the files to the server. In the class "sender.cs" (55th line of the class, procedure SendFiles) the application hangs on the line that says "int i = f.readInt();". Is this a bug or am I most likely doing something wrong?
I call the application like this (on the client-side):
static void Main(string[] args) {
args = new string[] { "-a", "-v", "-v", "-v","-v", "-z", "-r", "c:\test", "rsync://duffman@PC-duff/ftp" };
MainClass mc = new MainClass();
mc.Run(args);
}
Does anybody know why the application hangs while sending the files?
Thanks,
Duffman-
Thanks, this looks really useful. What license is the code distributed under?
You should consider adding a LICENSE file to clarify this.
Hi,
why are you using Kernel functions in FileSystem objects (Directory, File) instead of using standard .net methods of (System.IO.Directory...) ?
I new to rsync and trying to synchronize a folder on System A(Windows) to a folder on System B(Windows). Can you help me with the steps to achieve it.
Thanks in Advance
Hi,
Using MatthewSteeples' fork of the code, I'm having some problems using the -R / --relative option. In a testapp, I call:
string[] args = new string[] { "-v", "-r", "-c", "--relative", "c:\\temp\\rsync\\source\\", "rsync://SshUser@localhost/backup" };
NetSync.Run(args);
This results in a (sub)directory structure /c/temp/rsync/source/ on the target, where I was expecting the file in directory c:\temp\rsync\source\ on the source to be copied into the root of the target.
It could be that I am misinterpreting some option parameter(?). Overall the port of rsync really works great, I just can't solve this one problem.
Hello,
I think include, exclude options are for cloning only selected files/folders.
Can you explain what to do to copy only selected folders?
Thank you.
I have been learning the source and doing some testing, am I correct in thinking the rsync diff algorithm is not working? The daemon is running with the command:
NetSync.exe --daemon --port 873 -vvvv
Then I sync a 1.2Mb text file using the following command:
NetSync.exe -r -c "C:\Work\RPCv4\RPCDlls\rpclog.txt" localhost::qc
Number of files: 1
Number of files transferred: 1
Total file size: 1223943
Total transferred file size: 1223943
Literal data: 1223943
Matched data: 0
File list size: 67
Total bytes written: 1224250
Total bytes received: 62
When the file is unchanged, there is a match and only a few bytes are transferred. If it is changed by one byte the whole file is retransmitted. Is there a away to make it only send the changes? I have also tried the rsync:// protocol format for the destination and set --no-whole-file (this option doesn't appear implemented in the code so far)
Thanks, this is a very cool project and I'm keen to help make it work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.