Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Utility to sync with remote host thru ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
keifir
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2002
Posts: 119
Location: Canada

PostPosted: Fri Feb 07, 2003 2:54 am    Post subject: Utility to sync with remote host thru ssh Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Feb 07, 2003 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message
keifir
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2002
Posts: 119
Location: Canada

PostPosted: Fri Feb 07, 2003 3:50 am    Post subject: Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Feb 07, 2003 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message
keifir
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2002
Posts: 119
Location: Canada

PostPosted: Fri Feb 07, 2003 5:20 pm    Post subject: Reply with quote

thx, PowerFactor,

gonna try it on Monday

keifir
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sun Feb 09, 2003 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
keifir
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2002
Posts: 119
Location: Canada

PostPosted: Sun Feb 09, 2003 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum