LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2019, 01:43 PM   #1
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Rep: Reputation: Disabled
Are there drawbacks from copying my home folder from one machine to another?


I am in the process of building up another laptop with slackware, but I dont want to create my home folder structure again. Would there be any issue if I copy my current home folder to the new installation?
 
Old 04-23-2019, 01:51 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Nope - I keep a copy of my /home directory on my nas for backup purposes. If something bad happens, I just copy it back. The only caveat would be if you are starting any apps from .xinitrc (or however that is done in slack), you will need to have those installed on the target machine or they won't start obviously.
 
Old 04-23-2019, 01:54 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Usually nothing serious, provided the installs are similar. You have configuration stuff in /home, and if one has gnome and the other kde, there will be bilge there. It depends on if you're able to isolate and sort out the bits that don't match. I did it with slackware without any real issues

If your installs are chalk & cheese, better to copy the visible stuff only.
 
Old 04-23-2019, 02:01 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
that is actually a good idea, just rsync it over or into a holding dir then move it in to your new home.
 
Old 04-23-2019, 02:03 PM   #5
kevison
Member
 
Registered: Dec 2007
Location: Grand Rapids, Michigan USA
Distribution: Slackware/Bodhi/Manjaro
Posts: 149

Original Poster
Rep: Reputation: Disabled
Sounds good. I thought it would be ok, but I wanted to get some feedback. Since the new machine will pretty much have the same apps installed it should make it a quicker ramp up.

Thanks All!
 
Old 04-23-2019, 02:09 PM   #6
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
If you have a ~/bin/ where you keep compiled executables, they might or might not work on the new system, and you might want to omit application-specific cache directories (many use ~/.cache/) but other than that it should be fine. I've been copying my old home directory forward to new systems for about fifteen years.
 
2 members found this post helpful.
Old 04-23-2019, 03:17 PM   #7
ReFracture
Member
 
Registered: Oct 2007
Posts: 209

Rep: Reputation: 222Reputation: 222Reputation: 222
Copied from my desktop to a laptop, went very smoothly. I got some errors related to it wanting to start programs that still needed to be installed but it cleared up after installing them.
 
Old 04-23-2019, 03:30 PM   #8
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
Copied from my desktop to a laptop, went very smoothly.
For most folks that will be the case. Just a caveat for future readers of this thread, if the UID/GID are different be sure to update the copied files before logging in as that user. Basically chown -R user:group /home/user.
 
2 members found this post helpful.
Old 04-23-2019, 04:22 PM   #9
ReFracture
Member
 
Registered: Oct 2007
Posts: 209

Rep: Reputation: 222Reputation: 222Reputation: 222
Quote:
Originally Posted by upnort View Post
For most folks that will be the case. Just a caveat for future readers of this thread, if the UID/GID are different be sure to update the copied files before logging in as that user. Basically chown -R user:group /home/user.
Oh yes I forgot. On the destination computer I did the copy as root before creating the user account for it. It gave a message about the existing home folder and updating permissions iirc, I said yes and it did so without issue.
 
  


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
There was an error copying the file into smb:// PcName/Folder/Folder morbid_bean Linux - Networking 3 01-19-2017 04:44 AM
Copying home folder from command line without copying hidden directories and files rm_-rf_windows Linux - General 2 04-12-2016 08:24 AM
copying files from home dir to another dir from another dir in a lower dir chomito44 Linux - General 5 10-19-2013 06:18 PM
[SOLVED] Copying the files inside a folder, without copying the folder (hopefully easy) tibberous Linux - Software 3 12-23-2010 01:50 AM
installation by copying it from one machine to another machine betrussell23 Linux - Newbie 5 03-05-2007 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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