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 02-17-2012, 02:10 PM   #1
Thblaze
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Rep: Reputation: Disabled
How do I sync /home with a samba share


Hi . I wanted to find out how to sync /home with a folder in a samba share.

My teacher has a old laptop ( xp old ) and I upgraded it with kubuntu. I have figured out how to mount the samba share our school uses for its windows computers however I either need it to be 'available offline' or synced to the /home folder. I have tried using <domain>/usernameassword@southdserv02/collegestaff in etc/passwd but it didn't work. Any ideas ?
 
Old 02-17-2012, 03:24 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
I do not think you can do that "available offline" thing directly.
mount the share using mount -t cifs //host/share /mnt -o user=XXX,password=YYY
then "sync" (i.e.) copy the stuff you want over using rsync command.
(see "man rsync" for details or google for a tutorial...)

you can run the rsync command again to "keep the stuff in sync" / refresh your copy.

Cheers, Tom.
 
Old 02-18-2012, 06:46 AM   #3
Thblaze
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Isn't rsync a one way sync?
 
Old 02-18-2012, 06:55 AM   #4
Thblaze
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I just checked and it is.
Is there any way I can which file is more recent and sync that one to the not so recent one ?
If its a bit complicated then I'd appreciate a bash script
 
Old 02-18-2012, 08:02 AM   #5
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
tried unison ?
http://www.howtoforge.com/setting-up...n-ubuntu-11.10
Cheers, Tom.
 
Old 02-18-2012, 10:17 PM   #6
Thblaze
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Don't have access to the server
 
Old 02-20-2012, 04:41 AM   #7
omgs
Member
 
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
I'm not sure rsync doesn't do what you want. So, apart from what you've already been told, I suggest to build a test case (if not the real one) and find what is not working for you. As far as I understand your vague example, rsync already does that.
 
  


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
"Permanently" mapping a drive in Vista Home to SAMBA Network Share Help Brewmaster619 Linux - Newbie 2 01-29-2011 10:56 AM
Samba - Passwd protected share with Windows XP Home uhcafigdc Linux - Server 4 10-31-2008 10:38 AM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
Samba :share files from home directory to an other user flashdelux Linux - Software 0 11-29-2004 12:57 PM
Problem accessing home share with Samba bubber Linux - Software 5 03-09-2003 10:46 AM

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

All times are GMT -5. The time now is 03:46 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
Open Source Consulting | Domain Registration