LinuxQuestions.org
Visit Jeremy's Blog.
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 07-16-2014, 03:14 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question Is it ok to sync all files including config files from one PC to another PC?


Hi.

If I install Linux Mint 17 MATE 64-bit on my Desktop PC and laptop - Will syncing all files (including config files) from my desktop (one way sync) be fine for the laptop? I've got the same username on both but different passwords.

Thanks.
 
Old 07-16-2014, 04:31 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
config files shouldn't include linux login passwords,..
I acutualy copied whole home folder. watch for permissions and everything should be fine.
 
Old 07-16-2014, 04:35 AM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by yooy View Post
config files shouldn't include linux login passwords,..
I acutualy copied whole home folder. watch for permissions and everything should be fine.
Hi yooy.

I'd use Grsync and check the box 'Preserve permissions'. Would that be ok?

I presume that if PC#1 has Mint 17 Mate and PC#2 had Mint 17 Xfce - that trouble could happen? But if both desktop environments are the same it should be smooth-running?
 
Old 07-16-2014, 11:52 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Syncing the /home directory is one thing, but if you try to copy everything I imagine you'll run into a lot of problems. There are certain things that just SHOULDN'T be copied, such as fstab (which typically has UUID entries that would break the second system), entries in /boot, /proc, /dev, etc. Even if they're running the exact same OS, there is a lot of information in those config files that is hardware-dependent. MAC addresses, device names/UUIDs, and so on. Unless you're VERY careful about what does and does not get transferred, you're going to have to do a LOT of cleaning up in the recovery console.

Last edited by suicidaleggroll; 07-16-2014 at 11:53 AM.
 
Old 07-16-2014, 03:13 PM   #5
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
Quote:
Syncing the /home directory is one thing, but if you try to copy everything I imagine you'll run into a lot of problems.
i agree, you should copy programs hidden config folders, like firefox folder in home and etc. not whole home folder.
 
Old 07-16-2014, 08:30 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,635
Blog Entries: 28

Rep: Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231
My practice regarding configuration files and directories when installing new is to back up only the ones that I have modified (for example, the configuration files and mail store for my email program and for my desktop environment, assuming I will be using the same ones).

If I have left the files at default, there's no reason to save them.

Last edited by frankbell; 07-16-2014 at 08:32 PM.
 
Old 07-16-2014, 10:45 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,151

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Is the point of syncing a way to make both systems equal or are you trying to make a backup of sorts?
 
Old 07-17-2014, 09:51 AM   #8
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by yooy View Post
i agree, you should copy programs hidden config folders, like firefox folder in home and etc. not whole home folder.
I would only sync home folder files - nothing from root.

---------- Post added 17-07-14 at 02:52 PM ----------

Quote:
Originally Posted by jefro View Post
Is the point of syncing a way to make both systems equal or are you trying to make a backup of sorts?
Hi jefro.

Yes, make both systems the same. The backup part is good too.

Last edited by linustalman; 07-17-2014 at 09:53 AM.
 
Old 07-17-2014, 10:40 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Syncing the home folder generally won't cause many, if any problems, provided the two systems are close enough in architecture that your startup scripts and config file locations will be the same. Just make sure your user on the two systems has the same UID and preserve the permissions when you copy ("rsync -a" or similar).
 
Old 07-17-2014, 10:43 AM   #10
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by suicidaleggroll View Post
Syncing the home folder generally won't cause many, if any problems, provided the two systems are close enough in architecture that your startup scripts and config file locations will be the same. Just make sure your user on the two systems has the same UID and preserve the permissions when you copy ("rsync -a" or similar).
Is UID the same as username? It's the same on both computers. On Grsync, I check the box 'Preserve permissions'.

I remember a while back, I synced my home dir with all config files to my other PC which had a different DE. It caused problems. I presume that is because the Desktop Environments differed?
 
Old 07-17-2014, 10:47 AM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
No, UID is user id. All permissions in Linux are done by UID, the name is just used for display purposes. If you open a terminal and type "id", it will tell you your UID.

What kind of problems did the sync cause? Remember, this will not just make the second machine look like the first, it will essentially turn the second machine into the first (at least as far as display, config, etc. goes). Your system, as it looked previously, will cease to exist. You need to make sure you have the correct DE installed, the correct programs installed, etc. and you can not be logged into the second machine when you do the copy.

It's not really any different than the people who put /home on a separate partition and then upgrade their OS. They're installing the OS from scratch, but keeping /home untouched, so when they log in they're using /home from the previous installation. Usually it works just fine. I've done this, as well as rsyncing my home directory from one machine to another, without issue.

Last edited by suicidaleggroll; 07-17-2014 at 10:52 AM.
 
Old 07-18-2014, 10:17 AM   #12
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by suicidaleggroll View Post
...What kind of problems did the sync cause?...
I don't recall exactly but they were more of a nuisance that a show stopper.
 
Old 07-19-2014, 02:37 PM   #13
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
PC#1 is a Desktop PC and PC#2 is a laptop so have different resolutions, etc.

So to recap, both must have the same UID (which they have) and all is fine with syncing the complete home folders? Should I omit any home folder hidden files in particular?

Last edited by linustalman; 07-19-2014 at 02:39 PM.
 
Old 07-20-2014, 01:15 PM   #14
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I guess another safer way would be to sync all files from my home dir such as ~/Documents ~/Videos etc. and selectively sync things like .mozilla .thunderbird etc. That way there should be zero problems even if there were different desktop environments on each PC. How would I backup all in home dir bar all hidden files except for e.g .mozilla .thunderbird? Maybe it would be best to pick 2 different profiles in Grsync or some other backup app.
 
Old 07-20-2014, 01:58 PM   #15
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
luckyBackup looks like a good option. I could use that with Grsync.
 
  


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
LXer: BitTorrent Sync: Automatically sync files on your Linux Devices LXer Syndicated Linux News 0 10-04-2013 04:50 PM
[SOLVED] C++: Not #including files? ryan858 Programming 15 06-20-2010 05:23 PM
Doom 3: Using native installer and can't locate saved game files or config files JBailey742 Linux - Games 11 08-14-2006 07:09 PM
Including header files and source files for classes Feenix Programming 8 09-28-2005 11:53 AM
including files with Kdevelop shyam_d_sundar Linux - Newbie 1 03-14-2004 02:54 PM

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

All times are GMT -5. The time now is 07:01 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