LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 05: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, 08: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: 334Reputation: 334Reputation: 334Reputation: 334
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, 01: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, 05: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: 334Reputation: 334Reputation: 334Reputation: 334
NFS isn't nearly as reliable as SMB. I'm not giving Microsoft a compliment. IBM invented SMB. Use Samba, not NFS.
 
Old 09-24-2006, 12:36 AM   #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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:37 PM
Rsync homework from school to home, and home to school RandomLinuxNewb Linux - Software 2 05-05-2006 05:41 AM
Home network is fine, until i try to rsync/scp lagartoflojo Linux - Networking 4 01-15-2006 10:09 PM
apache login to home directories paul_mat Linux - Networking 1 04-05-2005 03:29 AM
how to rsync ex/include select specific directories ? dtimms Linux - Software 1 01-11-2005 06:16 AM

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

All times are GMT -5. The time now is 10:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration