Peppermint OS

Resources => User Submitted Tutorials => Topic started by: GNULINUX on July 15, 2016, 03:16:49 pm

Title: System Restore for Peppermint: Timeshift
Post by: GNULINUX on July 15, 2016, 03:16:49 pm
System Restore for Peppermint:  Timeshift

We all like to tinker with our Peppermint OS but sometimes it goes wrong... Timeshift may save your day!
Confirmed working on Peppermint 6 & 7


How to install:

Add the PPA:
Code: [Select]
sudo add-apt-repository -y ppa:teejee2008/ppaUpdate the Package cache:
Code: [Select]
sudo apt-get updateInstall Timeshift:
Code: [Select]
sudo apt-get install timeshift
If you're using the BTRFS file-system there's no need to install another version (all is merged in one version)!
See Settings -> Type. Screenshot under Extra Screenshots.


How to use:

After install, Timeshift can be found in the Menu under System Tools, it needs your password to open!
At first run you will be presented with a wizard which will configure the basic settings to your needs.

User interface:
(http://i.imgur.com/15LbDAd.png)

Create: Make a snapshot of the current state
Restore: Restore your system to a previously taken snapshot
Delete: Delete one or more snapshots
Browse: Browse previously taken snapshots
Settings: Extra configuration options for setting up the backup location, scheduled snapshots and filter options
Wizard: Reopens the initial setup/install wizard, basically the same as Settings

Extra Screenshots:
[close]


What does Timeshift backups:

Timeshift backups your entire Peppermint OS, including personal (program)settings minus your personal files!
To make this crystal-clear: Your personal files stay as they are if you restore to a previous snapshot...
You can change this behavior via Settings -> Filters.

Timeshift can run from your installed system AND from a live system (CD-DVD-USB) to restore your Peppermint OS and boot-loader!


Enjoy your Peppermint!  8)
Title: Re: System Restore for Peppermint: Timeshift
Post by: Tea on July 25, 2016, 03:39:51 am
This prog will not rescue a non booting system - if you need to restore the snapshot you need to prepare a bootable pen drive or Live CD. After booting from it, install TimeShift by running apt-get in a terminal window or by downloading and executing the installer.

also removing timeshift  via  sudo apt-get remove timeshift does not remove the snapshots - remove manualy or via timeshift before uninstalling.
Title: Re: System Restore for Peppermint: Timeshift
Post by: PCNetSpec on July 27, 2016, 06:42:07 am
Example: Imagine you remove LibreOffice and it deletes all documents you've made with it...

LOL :))

You can be sure this is coming in a future Microsoft Office (subscription) version.
Title: Re: System Restore for Peppermint: Timeshift
Post by: Elemec on October 05, 2016, 12:19:34 pm
Handy! I've never seen other Linux Forum mentioning something as handy as this (maybe i did and didn't notice). Seems very useful, i'll leave it installed.
Title: Re: System Restore for Peppermint: Timeshift
Post by: acer on October 15, 2016, 02:05:06 am
[Blatent BUMP! due to the usefulness of this app for noobs and others]

GNULINUX, this is excellent!

This should be one of the 1st apps installed for noobs to linux/peppermint.  :)

It will save you the headaches as it has done for me in the past by taking a tweak or two, too far..

Sticky/FAQ per chance?  ;)
Title: Re: System Restore for Peppermint: Timeshift
Post by: perknh on October 22, 2016, 06:31:39 am
Yep, it's essential for "new" users and even for seasoned user, unless your name is PCNetSpec (https://forum.peppermintos.com/index.php?action=profile;u=4)!  ;D

Not sure why this isn't advised/mentioned more...
Maybe people see it as a failure if they can't fix their system and have to use something like Timeshift to correct their "mistakes"?

I personally think it's a SUPER tool when you like to tinker with your system!  8)

It is an excellent tool.  ;)

I wonder why Timeshift remains a PPA and has not yet become a program to be found in the repositories.  :-\
Title: Re: System Restore for Peppermint: Timeshift
Post by: PCNetSpec on October 22, 2016, 06:49:59 am
Would be a WHOLE lot better if it let you choose where to do the backups .. I have a NAS but no easy way to get Timeshift to back up there:
(need to check if it can be conned by symlinks)
Title: Re: System Restore for Peppermint: Timeshift
Post by: acer on October 22, 2016, 07:40:24 am
Author has updated the software last week Timeshift v16.10.5  ;)
http://www.teejeetech.in/2016/10/timeshift-v16105.html (http://www.teejeetech.in/2016/10/timeshift-v16105.html)
Title: Re: System Restore for Peppermint: Timeshift
Post by: acer on October 22, 2016, 08:52:02 am
I've just checked my installed version and it's 16.10.6 (64bit)  ???
Must be a point release earlier this week
Title: Re: System Restore for Peppermint: Timeshift
Post by: perknh on October 22, 2016, 10:17:00 am
@ perknh (https://forum.peppermintos.com/index.php?action=profile;u=33): Don't really know, there are worse things in the repositories...  :-\

Good point!  I'll see where we are by November with this, and then I'll install it.  ;)
Title: Re: System Restore for Peppermint: Timeshift
Post by: emegra on October 22, 2016, 12:55:12 pm
Quote
Would be a WHOLE lot better if it let you choose where to do the backups .. I have a NAS but no easy way to get Timeshift to back up there:
(need to check if it can be conned by symlinks)

i love Timeshift but as far as I can see it will only backup to a local drive, but that might be corrected in time, but nonetheless if you have the disc space I would highly recommend it in fact i would advocate for it's inclusion in PM8


Graeme
Title: Re: System Restore for Peppermint: Timeshift
Post by: acer on October 22, 2016, 01:41:56 pm
Well, I have tried and tested it in a fubar situation due to a tweak too far in the pursuit of SPEED and system trim-down (learning curve)
Saved to a 16Gb USB3 flash-drive and also to an external HDD and can confirm they both work.
Don't hold much hope for VM's though.. ;)

Took about 10 mins to restore for the USB flash and a bit quicker for the external HDD (one after the other to test)
The only problem I encountered after restoring was some links/symlinks were broken which were easily repaired within a few minutes.
(my custom links in the XFCE4-Panel but not the defaults)
I just took a snapshot with no other scheduled updates from within the program itself (one off)

Saves a total reconfiguration of your system,
just saying..
Title: Re: System Restore for Peppermint: Timeshift
Post by: Elemec on October 22, 2016, 05:34:08 pm
I have a few backups, but it doesn't seem to be making anymore. It keeps scytching files and never ends... If i close it with taskmanager it still doesn't let me get a new one running because "it's already open"
Title: Re: System Restore for Peppermint: Timeshift
Post by: zebedeeboss on December 08, 2016, 08:21:55 am
They have also sorted out the NVME problem from previous versions. Working lovely here now

Regards Zeb...
Title: Re: System Restore for Peppermint: Timeshift
Post by: perknh on March 27, 2017, 06:11:32 am
Last night I was playing with NoobsLab's Chrome OS and Android themes for Ubuntu and Mint.  After doing so I couldn't get into my Software & Updates program.  (Apparently the themes were unsigned. Why I couldn't get into my Software & Updates program because of that, I do not know --but it wouldn't open for me.)  And, unfortunately, for the umpteen time, I had forgotten to install Timeshift. 

It's installed now, I tell you.  I've got a new installation of Peppermint this morning, and a brand spanking new installation of Timeshift too. ;)

Thank you, GNULINUX.
Title: Re: System Restore for Peppermint: Timeshift
Post by: PCNetSpec on March 27, 2017, 09:27:34 am
Can it now save backups to another drive (or NAS) ?
Title: Re: System Restore for Peppermint: Timeshift
Post by: PCNetSpec on March 27, 2017, 09:45:34 am
Okay might give it another look then .. though systemback is currently doing the "snapshot" job

BTW, I've set systemback to do a FULL backup (not set this way by default) of my SSD to an external USB3.0 HDD (formatted as EXT4) .. and damn it's fast, that fast that at first I didn't believe it could possibly have worked, but sure enough it's all there and verified :)

Maybe it's just that I'd never backed up from an SSD over USB3.0 before .. but it surprised the heck outa me.
Title: Re: System Restore for Peppermint: Timeshift
Post by: calinb on June 25, 2017, 05:31:57 pm
I'm looking at backup methodologies. The Timeshift dev, Teejee, recommends BackInTime for non-system files. From
http://www.teejeetech.in/p/timeshift.html (http://www.teejeetech.in/p/timeshift.html):

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.

See:
https://github.com/bit-team/backintime (https://github.com/bit-team/backintime)
and
http://backintime.readthedocs.io/en/latest/ (http://backintime.readthedocs.io/en/latest/)

Despite Teejee's recommendation, It seems to me I could just configure Timeshift to backup my /home directory (and whatever else) in addition to the system files. I don't need major sophistication here but would like to protect myself from self-inflicted system maladies (or maladies related to updates) as well as self inflicted document loss or hard disk failure. Obviously recovery needs vary, depending of the failure. Is it possible to select a system only, non-system only, or both during a restore operation. If it's not easy to independently select from one or the other, because the recovery needs after different kinds of failures are different, then I guess it's probably worth install both Timeshift and BackInTime on my system.

My methodology would also include a bootable Clonezilla USB memory stick, which I've already used to store an image of my new Peppermint 8 system on a external USB ext4 hard disk drive. BackInTime and/or Timeshift backups could be made to the same drive much more quickly and space efficiently than making entirely new Clonezilla images. If I store a final Clonezilla image after I install and setup BackInTime and/or Timeshift, recovery from a hard disk failure should be trivial and fast (my new Pepermint 8 system still has a small disk footprint) and I don't know that I'd ever have a need to make new Clonezilla images after I install and setup the rsync based "time" utilities and run Clonezilla one last time.

Any thoughts and feedback on this strategy is appreciated!

-Cal
Title: Re: System Restore for Peppermint: Timeshift
Post by: calinb on June 26, 2017, 11:35:25 am
It looks like a utility called systemback would do the job for me (enable and manage both system and home backups), but development has ceased on the project and there are also an awful lot of bug reports on the dev page (not something you want to see in backup software)!

In reviewing several timeshift tutorials, it also appears that previous version of the program provided more control and options in the restore process than the current version 17.2, which I installed.

Timeshift 17.2 almost supports the simple options I desire (simple management of home directory backup and restore options at both backup AND restore time). The timeshift filters menu is very clunky and I could not find a way to add the entire home directory or even MY home directory (~/) to the backup list. I could toggle them to a "+" in the filters GUI, but when checking the final results using the "Summary" button, I found that the home directory or directories were added for explicit exclusion, rather than inclusion (no "+" mark). I suspect that this is because the default rule to only backup home hidden files and subdirectories is overriding my attempt to add them at this level and there is no way to reorder custom home filter rules ABOVE the default rules (or at least I think something like that behavior is happening).

However, I could successfully add subdirectories within a home folder (Documents, Downloads, Videos, etc.) and the plus mark appeared in the summary. This more tedious entry method should work for me, as long as I remember that files stored directly in my home folder are not backed up. (Only files in subdirectories BELOW ~/ are backed up).

Finally, it would be nice to be able to schedule home backups but be able to deselect them during a restore operation. The latest version of timeshift does not appear to support this level or restore-time control (though previous versions appear to have it). The best workaround I could find for this feature deficiency would be to restore the home backup to another device at restore-time--say my USB backup drive itself. I could then delete the unwanted restored home files without over-writing them on my system. This would add a LOT more time to the restore process, however. Alternatively, manual snapshots could be made with or without home folders and files included or not included, but periodically manually toggling the filter settings and creating snapshots differently configured from the scheduled snapshots is also painstaking and prone to user error.

Given the above shortcomings of timeshift, I guess it does make sense to install backintime alongside timeshift and use both backintime and timeshift together to fully automate backups (after using clonezilla to create a "stake in the ground" image).

It's too bad that systemback development ended, because it can make images too (even bootable live images). Its feature set could be used to replace clonezilla, timeshift, and backintime, but I guess I'll install the full trio of CTB proggies, given that systemback would currently be an unreliable backup choice.
Title: Re: System Restore for Peppermint: Timeshift
Post by: alynur on September 15, 2017, 09:27:35 pm
Just a note, I attempted to install Timeshift on two different operating systems and on each one I got a note that either the ppa didn't have a release file or the attempt couldn't unlock dpkg files, something like that. I almost panicked because Peppermint 8 was the only system I had Timeshift on with a snapshot created and that's where I needed it. So, to try something I ran sudo apt-get upgrade after sudo apt get update and Timeshift installed okay. Peppermint 8 is back in business!  ::)