LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sync "working" dir with all computers (http://www.linuxquestions.org/questions/linux-newbie-8/sync-working-dir-with-all-computers-798777/)

Galib 03-29-2010 11:09 PM

sync "working" dir with all computers
 
Is it possible to have a folder that is stored on my server mounted via smb etc, that copies over any file that has been updated on my machine? I believe I'll prob have to learn some scripting to accomplish this, but here is what I want to do.

I have three computers, a laptop for school, a desktop at home and a server box sitting around for hosting files (I have access to this from anywhere). I have a folder for all of my school work, we'll call it "school". This folder is present on my laptop and desktop. Sometimes I work on my laptop at school and have new files created / updated. Other times, I work on my desktop and alter files / create new ones there. What I was thinking was using my file server as a repository. After I am finished working on one machine, I want to upload all the new files/folders to the server, so that when I work on the other machine, I can run a quick "fetch files" and being to work off of where I left of. That way, I don't have to copy files over via email or my network. Also, it's very helpful to have the updated files always stored on my server because sometimes I need to grab a file but don't have access to any of my computers.

Any suggestions to where to start and how I'd go about this?

Thanks!

Galib 03-29-2010 11:35 PM

Or better idea... would it be possible to work off of a server drive from any location? That way I don't have to worry about copying files etc, just save / edit directly from that one location?

chrism01 03-30-2010 01:53 AM

For local copies, you could use your server as an NFS server.
Remote access would be better through ssh/scp.

Galib 04-01-2010 12:04 PM

Thanks for your help. I was trying to setup HFS on my server, but my router could not properly forward the port as it seemed...

tredegar 04-01-2010 12:42 PM

HFS ?

I think sshfs would be a much better idea ;)


All times are GMT -5. The time now is 12:30 AM.