LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Comparing two folders and scp the difference (http://www.linuxquestions.org/questions/linux-general-1/comparing-two-folders-and-scp-the-difference-680610/)

joao.m.esteves 11-02-2008 05:37 AM

Comparing two folders and scp the difference
 
Hello:

I have a folder with some documents in a PC at the University and a copy at home. How can I update the copy? I mean, I would like to copy only the new documents in that folder. Does scp has some option for it, or perhaps combining it with diff? I can access the PC on the University with ssh.

Thanks,
Joćo

SkyEye 11-02-2008 06:26 AM

Try rsync. It's the common tool used for cases like your and it can work over SSH. You'll most probably have it already install or available in repos.

joao.m.esteves 11-02-2008 07:31 AM

Ok, thanks, I didn't know about it. I've tried and it works fine!

Regards,
Joao


All times are GMT -5. The time now is 04:35 AM.