Hello Jonah11,
The tool you need is rsync. If you have ssh access to the remote server.
http://en.wikipedia.org/wi
http://www.samba.org/rsync
Regards.
Main Topics
Browse All TopicsI'm working on a website on a local windows computer, and after making updates I need to upload only the changed files to my web server, which is a linux machine. What would be the best solution for this? I want to avoid installing svn, and I want a solution that works quickly, and doesn't have compare all files every time I request an upload. That is, on the local side, it should keep an index of changed files.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello Jonah11,
The tool you need is rsync. If you have ssh access to the remote server.
http://en.wikipedia.org/wi
http://www.samba.org/rsync
Regards.
Hi,
Could you give more info on what is needed to setup rsync. I've found a few web tutorials on it but none of them are clear to me. Will I need to install something on my server as well as my local windows box?
Also, should I consider cwRsync (http://www.itefix.no/i2/n
Thanks,
Jonah
Could you confirm you have ssh access on the remote web server ?
In your case you need :
- Cygwin installed on your Windows box : http://www.cygwin.com/
- a rsync client for Windows (source to sync) : cwRsync
- ssh access on the remote server with suffisant right and nothing else on the web server.
Transfert is done by ssh and note by FTP
Sorry, don't know DeltaCopy. If you don't know Cygwin it's time to install it on your windows box ;-)
Regards.
Hi leakim,
Ok, I got cwrsync successfully installed on my machine. and I have it communicating with my server. however, it's still not working, and it's slow (the command takes about 45 seconds to execute every time I run it). If I turn on the verbose option, I can see it "sending an incremental file list" which means that it spiders through every file and folder. It does this every time it is run. It does not work in this sense: If I change a file, run cwrsync, and then check that file on the server, it has not been changed.
I am running the attached batch file, which comes with cwrsync. Only the final line has been changed by me.
What could be going wrong?
Not many files but low bandwidth between you and your web server for the first sync and transferts.
If you want to be sure and if you can create a virtual server on your local network to check.
I will review the rsync doc to see if you may add some option for "low" bandwidth.
You may create multiple sync script to sync folder by folder, one for pictures, an other for admin templates, ...
Regards.
hmmm... i still don't understand what you are proposing is happening. I have 200KB/s upload speed and 1000KB/s downloadspeed, fwiw. so I don't think low bandwidth is the problem. and the process is definitely completing.
what criteria does rsync use to decide if it needs to upload a file? also, is there any way to have it output ONLY the files that have changed and that it is sending? the verbose option gives way too much information about incremental transfers and whatnot.
Thanks,
Jonah
200KB/s upload ? Wow ! Forget my comments about bandwidth ^^;
Run this to see what files is transfered :
rsync -r -n -v /cygdrive/e/data/documents
Don't forget to add a slash after projet to the source -> ...ents/myproject/
Add the "n" option to see what is sending successfully
Regards.
Ok, when I do that, it says "sending incremental file list"
Then lists several hundred file names (everything in my project)
Then it says:
sent 174134 bytes received 17442 bytes 8152.17 bytes/sec
total size is 21654308 speedup is 113.03 (DRY RUN)
And then the process completes. And still my changed files is not being sent. Again, maybe it has something to with how rsync determines if a change is to be made? Any other ideas?
Thanks again.
Hello,
Don't know how rsync determine how file need to be update or not.
http://www.samba.org/rsync
Perhaps it's a "permissions" problem to replace/delete file that need update when rsync try to replace the file ?
I see rsync sent 174134 bytes.
On the web server could you delete one of your file need to be update to see if rsync upload it successfully.
Regards.
I tested deleting a file: it was not replaced by rsync. Also, here are the permissions of the file on the server from a "ls -l" command (note that rsync is logging in as jonah):
-rw-r--r-- 1 jonah jonah 7373 Jul 22 23:29 bundle.js
Does that give you any hints? I will look over the link you attached and see if anything seems relevant.
Ok, so I figured it out. I needed to leave "myproject" off the end of the receiver path. it turns out all the files were being sent, but they were being sent to a new folder called "myproject" that existed within the existing "myproject" folder on the server, and since there were so many folders i didn't even notice. also, using --checksum is a good option for me, since my local dates are all newer than my server dates.
anyway, thanks for all your help!
Business Accounts
Answer for Membership
by: TimorosPosted on 2009-09-07 at 06:11:53ID: 25274821
You can try filezilla but you will manually update the files (new or changed ) rg/
http://filezilla-project.o