Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-16-2014, 03:14 AM
|
#1
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
|
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.
|
|
|
07-16-2014, 04:31 AM
|
#2
|
Senior Member
Registered: Dec 2009
Posts: 1,387
Rep:
|
config files shouldn't include linux login passwords,..
I acutualy copied whole home folder. watch for permissions and everything should be fine.
|
|
|
07-16-2014, 04:35 AM
|
#3
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
Quote:
Originally Posted by yooy
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?
|
|
|
07-16-2014, 11:52 AM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
07-16-2014, 03:13 PM
|
#5
|
Senior Member
Registered: Dec 2009
Posts: 1,387
Rep:
|
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.
|
|
|
07-16-2014, 08:30 PM
|
#6
|
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
|
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.
|
|
|
07-16-2014, 10:45 PM
|
#7
|
Moderator
Registered: Mar 2008
Posts: 22,151
|
Is the point of syncing a way to make both systems equal or are you trying to make a backup of sorts?
|
|
|
07-17-2014, 09:51 AM
|
#8
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
Quote:
Originally Posted by yooy
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
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.
|
|
|
07-17-2014, 10:40 AM
|
#9
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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).
|
|
|
07-17-2014, 10:43 AM
|
#10
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
Quote:
Originally Posted by suicidaleggroll
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?
|
|
|
07-17-2014, 10:47 AM
|
#11
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
07-18-2014, 10:17 AM
|
#12
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
Quote:
Originally Posted by suicidaleggroll
...What kind of problems did the sync cause?...
|
I don't recall exactly but they were more of a nuisance that a show stopper.
|
|
|
07-19-2014, 02:37 PM
|
#13
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
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.
|
|
|
07-20-2014, 01:15 PM
|
#14
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
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.
|
|
|
07-20-2014, 01:58 PM
|
#15
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,837
Original Poster
|
luckyBackup looks like a good option. I could use that with Grsync.
|
|
|
All times are GMT -5. The time now is 07:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|