LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-03-2021, 06:52 PM   #1
John Trabbick
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Rep: Reputation: Disabled
Question for restoring Xubuntu from file backup


Hi LQ'ers. I am new to Linux and I would like to ask a question.

I used FreeFileSync to make a copy of my /home directory, which I compressed and stored in an external drive. In the event my system's drive malfunctions and I need to buy a new computer/repair with a new drive, how would I restore my operating system using the copied /home folder?

Other questions I would like to ask:

Is a /home directory sufficient to restore my operating system, or would I need something more to make a full backup? How different would it be if I didn't include that for my backup?

Is there any other way I can backup using means of software or other methods?

And probably more..
 
Old 10-03-2021, 07:17 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
I just backup /home using a Perl file that I wrote. In my ~/admin folder I keep track of any OS customizations that I've made so I can apply them to a clean install of the OS if I have to restore. Not sure what FreeFileSync does that rsync doesn't, but if it makes a proprietary backup format, then you should keep a copy of its installer along with your backup.
 
Old 10-03-2021, 10:10 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Essentially the /home directory is just your docs, photos and downloads. Simple as that - nothing to do with the operating system. You cannot create a runable system from it. Gross over-simplification, but will do for this discussion.

You will need to re-install Linux, restore the /home, then re-install any manually installed packages. Nothing is ever as simple as it seems.
As for backups, there are innumerable, and depends on needs - see this for a start of your journey. There is no universal "use this" answer.
 
Old 10-03-2021, 10:31 PM   #4
John Trabbick
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
reply

Meant to rephrase my question; I will get a clean new operating system from Xubuntu, but how can I restore my /home folder?

Also smallpond, I heard of rsync, but I don't know how it is good to use as a backup tool. I'll google it, but if possible, can I get some information on the benefits of rsync?

Last edited by John Trabbick; 10-03-2021 at 10:33 PM.
 
Old 10-04-2021, 01:29 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
The obvious answer is to uncompress the backup and use FreeFileSync to synch it back in the opposite direction. Never used it, but theory says (to me) it should work ok.
Else if the files are "just files" and not a special format, any copy tool should work - cp, rsync, GUI filemanager, whatever. Best done from a liveUSB to ensure no clashes.
 
Old 10-04-2021, 07:16 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Why would you google? Open a bash shell and type man rsync
 
Old 10-04-2021, 04:33 PM   #7
John Trabbick
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
"Else if the files are "just files" and not a special format, any copy tool should work - cp, rsync, GUI filemanager, whatever. Best done from a liveUSB to ensure no clashes." But what about things like my config, local file, etc? I'm no Linux expert at all, but I think that users are connected with /home/user directories. So considering that I get a clean new Xubuntu install on a new PC, how would I make it so that my /home/user/ directory is replaced with the other /home/user/ directory from my old computer,if my assumption is right? I would like it so that my new Xubuntu OS would feel like my old one, with all the config and local folder stuffs saved and everything like desktop apps working just as they did before the breakdown. How would this be achieved?
 
Old 10-05-2021, 03:11 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
All the files that you (as a user) care about are under /home/${USER}/ - all the configs you have modified are there; most as hidden files. If you restore it after re-installing the system, everything will magically appear as it was. Hopefully. If all the hidden files were backuped up appropriately.

The only way to be really sure is to take a more comprehensive backup as per above. Regularly.
 
1 members found this post helpful.
  


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
Can't upgrade to Xubuntu 16.04LTS from Xubuntu 15.10 Gregg Bell Linux - Software 2 04-23-2016 06:20 PM
LXer: How to Upgrade XFCE 4.10 to XFCE 4.12 in Xubuntu 14.04 and Xubuntu 14.10 LXer Syndicated Linux News 0 03-07-2015 07:18 PM
Installing Xubuntu and then Linux Mint. Now my Xubuntu is gone! antonius0809 Linux - Laptop and Netbook 5 04-11-2013 04:10 AM
My wireless networking is disabled after Upgrade from Xubuntu 11.10 to Xubuntu 12.04 vutar Linux - Laptop and Netbook 8 10-22-2012 02:42 AM
Question about restoring a backup in a different system tirengarfio Linux - Newbie 7 01-21-2010 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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