LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2006, 04:06 PM   #1
rud17100
LQ Newbie
 
Registered: Apr 2005
Distribution: All of Them
Posts: 6

Rep: Reputation: 0
RSYNC Home Directories at Login and Logout


Hello, I have several computers in my house, all running Suse Linux 10. I have a central computer set up as a server, what I would like to do is set it up to where when you logout using KDE it will RSYNC the home directory of that user to the server, and then when you log back in. It will RSYNC the user's home directory back to that computer from that server. This way all computers maintain a current copy of that home directory. If this is not possible, then I would like it to simply rsync the entire /home directory to the server when the system shuts down. Then when it boots back up just rsync the /home directory from the server to the system. How would I go about doing this?

Thank You
 
Old 09-22-2006, 07:11 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You could put the rsync command in your ~/.bash_logout script.

I think it would be easier to put all of the files on one server computer and use Samba to mount the directory from the server to the computer that you log onto. Trying to put some command that could take a long time or even hang could cause you to have to power cycle your computer to get it into a usable state.
 
Old 09-23-2006, 12:51 PM   #3
rud17100
LQ Newbie
 
Registered: Apr 2005
Distribution: All of Them
Posts: 6

Original Poster
Rep: Reputation: 0
I will try the .bash_logout script

I was worried about the hanging issue. A while back I did try mounting the /home directory from one computer to another using NFS to see how it would work. It worked decently, there was some lagging issues. I will look into that more though.

Thank You
 
Old 09-23-2006, 04:21 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
NFS isn't nearly as reliable as SMB. I'm not giving Microsoft a compliment. IBM invented SMB. Use Samba, not NFS.
 
Old 09-23-2006, 11:36 PM   #5
rud17100
LQ Newbie
 
Registered: Apr 2005
Distribution: All of Them
Posts: 6

Original Poster
Rep: Reputation: 0
I Did Not Know That

I had always considered samba as more of a windows to linux style of networking, and that NFS was more native to linux and better for linux to linux networking. This is very good to know.

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Rsync homework from school to home, and home to school RandomLinuxNewb Linux - Software 2 05-05-2006 04:41 AM
Home network is fine, until i try to rsync/scp lagartoflojo Linux - Networking 4 01-15-2006 09:09 PM
apache login to home directories paul_mat Linux - Networking 1 04-05-2005 02:29 AM
how to rsync ex/include select specific directories ? dtimms Linux - Software 1 01-11-2005 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration