LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2021, 05:24 PM   #1
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Rep: Reputation: 20
Timeshift snapshot - why not include /root?


The default setting in Timeshift is to exclude /root and /Home directories from the snapshot.

1) If I glitch my system and I restore it with my Timeshift snapshot, why would I not want to also restore the /root directory?

2) If I restore my system does Timeshift overwrite my whole glitched system or does it just replace all changed system files?

3) In other words, since the default is to exclude the /Home directory, will a restore operation work around my /Home directory and leave it intact while restoring my system back to working condition?
 
Old 05-07-2021, 06:49 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sofasurfer View Post
1) If I glitch my system and I restore it with my Timeshift snapshot, why would I not want to also restore the /root directory?
Because /root contains nothing that is required for the functioning of the system. It contains root's private files, which you probably don't want to be overwritten.

Quote:
3) In other words, since the default is to exclude the /Home directory, will a restore operation work around my /Home directory and leave it intact while restoring my system back to working condition?
Yes. Same for /root.
 
Old 05-07-2021, 08:44 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,147

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
When in doubt check what the author has to say.
Quote:
Timeshift is similar to applications like rsnapshot, BackInTime and TimeVault but with different goals. It is designed to protect only system files and settings. User files such as documents, pictures and music are excluded. This ensures that your files remains unchanged when you restore your system to an earlier date. If you need a tool to backup your documents and files please take a look at the excellent BackInTime application which is more configurable and provides options for saving user files.
 
2 members found this post helpful.
Old 05-08-2021, 12:35 AM   #4
sofasurfer
Member
 
Registered: Oct 2003
Posts: 252

Original Poster
Rep: Reputation: 20
Thanks. One final question...for now. Am I correct in thinking I can restore a snapshot to a different, empty partition (although formatted) and I will have a working system on that partition? I guess this is can a clone?
 
Old 05-08-2021, 02:07 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by sofasurfer View Post
Thanks. One final question...for now. Am I correct in thinking I can restore a snapshot to a different, empty partition (although formatted) and I will have a working system on that partition? I guess this is can a clone?
From the author:
Quote:
Timeshift protects your system by taking incremental snapshots
"Incremental" means that something would have to be on the partition. For cloning, check out Clonezilla.

Last edited by berndbausch; 05-08-2021 at 02:10 AM.
 
Old 05-08-2021, 08:58 AM   #6
remmilou
Member
 
Registered: Mar 2010
Location: Amsterdam
Distribution: MX Linux (21)/ XFCE
Posts: 212

Rep: Reputation: 69
Quote:
Originally Posted by sofasurfer View Post
Thanks. One final question...for now. Am I correct in thinking I can restore a snapshot to a different, empty partition (although formatted) and I will have a working system on that partition? I guess this is can a clone?
Yes. That will work. Tested...
I use this every now and then, to put my system on an external (USB) hdd. I can boot directly from that, in case of disaster.
Bear in mind your settings for /root and /home
I backup /home with Backintime (and exclude /home from Timeshift). When I restore with Timeshift to the USB hdd, then I also restore /home with Backintime.You might have to edit the new /etc/fstab then for your home partition...!!! I use Backintime in root modus. Timeshift will take care for the / partition in fstab. Very elegant.
I even have my system working on a (large) usb stick this way.
Berndbausch suggests Clonezilla. That is certainly a very good advice for hassle free (and much simpler) restoring in case of disaster!

Last edited by remmilou; 05-08-2021 at 09:00 AM. Reason: Typos
 
  


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
Gaining a better insight to MX Snapshot & Snapshot Repeats / Updates LinWinux antiX / MX Linux 25 12-04-2020 04:50 PM
[SOLVED] Timeshift-Taking the first snapshot beachboy2 Linux - Software 5 06-25-2020 11:48 AM
[SOLVED] snapshot what is a good snapshot app or whatever it takes BW-userx Linux - Hardware 2 06-18-2019 05:54 PM
How to take a Snapshot of a KVM at Location A and Restore that Snapshot at Location B LinuxRSA Linux - Virtualization and Cloud 4 06-22-2016 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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