View previous topic :: View next topic |
Author |
Message |
keifir Tux's lil' helper


Joined: 10 Jun 2002 Posts: 119 Location: Canada
|
Posted: Fri Feb 07, 2003 2:54 am Post subject: Utility to sync with remote host thru ssh |
|
|
Hi everyone,
i have access to my school server thru ssh/sftp. I'd like to perform some work locally and then upload the files to school.
Is there a utility that would automagically do a diff/timestamp check between 2 versions of files and then upload/download the changed files? I wish we had cvs on user accounts at school - but that's not an option.
Thank you for reading this,
keifir |
|
Back to top |
|
 |
PowerFactor Veteran


Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Feb 07, 2003 3:29 am Post subject: |
|
|
Unless I misunderstand what you want I believe rsync is what you're looking for. It can run through ssh. The catch is that both machines need to have rsync installed. The sun servers at my school don't have it but the linux ones do. |
|
Back to top |
|
 |
keifir Tux's lil' helper


Joined: 10 Jun 2002 Posts: 119 Location: Canada
|
Posted: Fri Feb 07, 2003 3:50 am Post subject: |
|
|
yes - it is rsync, but they don't have it on my school's servers.
i looked at rsync site - they're saying it doesn't need any special(root?) priveledges to run - so i guess i could set it up myself. Is this right?
Srry, i may sound like a noob - that's cause i am. First i heard of rsync is when my school admin told they don't have it:)
thx,
keifir |
|
Back to top |
|
 |
PowerFactor Veteran


Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Fri Feb 07, 2003 5:26 am Post subject: |
|
|
Wow, I never even though of that. Just tried it and it works for me. Just put the rsync executable in a directory you have access to on the server and make sure that directory is in your PATH. |
|
Back to top |
|
 |
keifir Tux's lil' helper


Joined: 10 Jun 2002 Posts: 119 Location: Canada
|
Posted: Fri Feb 07, 2003 5:20 pm Post subject: |
|
|
thx, PowerFactor,
gonna try it on Monday
keifir |
|
Back to top |
|
 |
OdinsDream Veteran


Joined: 01 Jun 2002 Posts: 1057
|
Posted: Sun Feb 09, 2003 8:21 pm Post subject: |
|
|
Could you post more details about your solution? Something like this would be great for my web development work. Which executable did you move, and where did you put it? How did you then configure it, and get it working? |
|
Back to top |
|
 |
keifir Tux's lil' helper


Joined: 10 Jun 2002 Posts: 119 Location: Canada
|
Posted: Sun Feb 09, 2003 10:15 pm Post subject: |
|
|
i will post the results for sure - just need to get this Philosophy essay out of the way.
so far i looked at rsync docs - seems all u gotta do is put it in your PATH and write up a small shell script to tell it what directories to sync and such. Prolly this script is supposed to be set up with cron - but i haven't looked at that yet.
One other thing is i think one of the machines should have rsync daemon - but i could be wrong on this point.
i will definetely post here when i get this to work.
keifir |
|
Back to top |
|
 |
|