Backing up system (Solved with Timeshift)

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
FUBAR
Level 3
Level 3
Posts: 138
Joined: Mon Jun 27, 2022 8:19 am

Backing up system (Solved with Timeshift)

Post by FUBAR »

I have been reading about Timeshift and how to use it. I see there is a utility in Mint called Backup Tool. This tool will keep a record of the files that are in the directory that include photos,pictures, downloads etc??
Last edited by LockBot on Wed Jan 04, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Backing up system

Post by AZgl1800 »

  • Backup Tool ( included by Default IIRC )
    BackInTime ( I don't like this one )
    LuckyBackup ( in the Software Manager )
Timeshift is included by Default, and it will behoove you to make Triple Darn Sure, it is installed correctly.

e.g.; that means to select a Storage Location that is NOT in the Same Partition as your OS
and do NOT use it to backup /home

in my case, I created a special Partition just for Timeshift ( 60 GB is plenty )
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

Timeshift and Backup Tool are quite different things.

Timeshift has the purpose to save the current state of your system and only the system, not your data. Timeshift is the security belt, which Mint provides. It is strongly suggested to activate it. The storage place should be in the ideal case a separate partition.

Backup Tool has the main purpose to backup your user data. But it is mainly a workaround, if there is no other backup software at hand. You cannot configure it, you cannot automatize it, you cannot exclude things, which you do not want to backup.

That's why you should use a different backup solution. Since nearly 10 years I use BackInTime, which has all the feature, which are missing in the default Backup Tool.

Reading the title of the thread I would say, Timeshift is what you are looking for ("Backing up System"), if I read your text I merely think, that you want to backup your user data. Please clarify this, possibly change the title of the thread.

Last word: Backing up both is important, if you want to avoid misfortune.
User avatar
antikythera
Level 15
Level 15
Posts: 5721
Joined: Thu Jul 02, 2020 12:52 pm
Location: Cymru

Re: Backing up system

Post by antikythera »

AndyMH will probably shoot me for saying this but I use his foxclone program to backup my linux systems once a month.

foxclone.com is the homepage. However, if you have problems downloading the ISO use foxclone.org instead which is the archive site.
I’ll tell you a DNS joke but be advised, it could take up to 24 hours for everyone to get it.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backing up system

Post by AndyMH »

Plaudits are welcome, but I'm going to go off on a slightly different tack. Although I developed it, I only use foxclone infrequently. Why? It means I have to boot to a separate system (for most people a usb stick) and I have approaching 300GB of used space on my system drive - it takes some time to back this up. So...

I use timeshift to look after the system and backintime* (install from software manager) to look after my data. These work at the file level - the advantage is you can run them from your normal system (and do other stuff at the same time). Both use the terminal utility rsync to do the heavy lifting. Both of them take snapshots and each snapshot is a complete copy of either your system or your data. First time you run them, they copy everything = slow, subsequent snapshots they only copy what has changed = quick. With timeshift/backintime you can restore individual files/folders. foxclone knows nothing about files, it works at the block level, you have to restore whole partitions.

How is each snapshot a complete copy? They use hard links to point at files that have not changed since the original backup = saves a lot of space. Win filesystems do not support hardlinks which is why your destination needs to be an ext4 partition.

Best I can say about the mint backup tool is that it is okay, it creates a compressed archive of your data. Next time you use it, same again, a complete copy of your data, so now you have two. It does not have the snapshot capability of timeshift or backintime, nor can you automate it.

My backup drive is an internal but removable 2TB HDD**, I have timeshift & backintime running daily automatically. Once every few months I'll take a foxclone image backup. If something goes belly up, e.g. screwed up the system or lost data, timeshift/backintime are my first port of call. If the system drive fails, then I'll clone a foxclone backup to a new drive. That will get me a working system current at the time of the backup. I'll then use timeshift/backintime to get back to yesterday.

You can argue whether what I have is a backup since the backup drive is in the PC. LadyF has strong views on this and will probably comment. I have 4 x laoptops and a desktop, all pretty much identical, plus a NAS where important stuff gets synced daily. A lot of redundancy, works for me.

I know AZgl1800 doesn't like backintime, as he indicated there are alternatives like luckybackup (and there are others).

If I have a message, use both file and image level backup, you can never have too many backups.

End of my backup 101 :D



* timeshift default, backup up everything except home, backintime default only backup home, so complementary.

** sits in a caddy in the laptop where the DVD drive used to live
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

To clarify: The default Backup Tool does indeed use a TAR archive for storing the files, but this does not compress the least. It's purpose is to allow to use a NTFS partition as storage place, because the Linux file attributes get preserved by the TAR archive. And this, the possibility to use a Windows drive for backing up, is the only advantage of it.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Backing up system

Post by AndyMH »

Cosmo. wrote: Mon Jul 04, 2022 3:37 pm but this does not compress
My bad :(
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
OunceofCommonSense
Level 5
Level 5
Posts: 677
Joined: Mon Oct 01, 2012 3:52 pm

Re: Backing up system

Post by OunceofCommonSense »

I use Timeshift and have restored both system and home partitions with it. I have my data in a separate partition from home(including my Thunderbird profile and local directory) so I don't have a lot of files in home. I use symlinks to link Video,Music and Document folders in Home to my data partition. I prefer to restore both as home does have some configuration files, cache and other files that can be restored with Timeshift.
Just my 2 cents
MB: Gigabyte model: B650M AORUS ELITE AX Memory: Corsair Low Profile Vengeance 32.00 GB. CPU Ryzen7600x Platform: x86_64 Distribution: Linux Mint 21.2
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

Hm, you do not use a Browser or a Mail-Client? By combining system and home in a Timeshift snapshot every time, you apply a snapshot, you will inevitably loose data (browser bookmarks and history and mails). Strongly not recommended.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Backing up system

Post by AZgl1800 »

AndyMH wrote: Mon Jul 04, 2022 3:23 pm
I know AZgl1800 doesn't like backintime, as he indicated there are alternatives like luckybackup (and there are others).
I quit using BackInTime when I discovered that it will NOT let you recover your data, when you change the OS.
I thought I was super smart, and used it to backup 19.3 /home

then I installed 20.3 and BackInTime refused to recover my files,
I had to use Foxclone to reimage the drive back to 19.3 and then copy /home with NEMO to my External drive.

then in 20.3 I used NEMO again, to recover my data files....
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
OunceofCommonSense
Level 5
Level 5
Posts: 677
Joined: Mon Oct 01, 2012 3:52 pm

Re: Backing up system

Post by OunceofCommonSense »

Cosmo. wrote: Mon Jul 04, 2022 4:04 pm Hm, you do not use a Browser or a Mail-Client? By combining system and home in a Timeshift snapshot every time, you apply a snapshot, you will inevitably loose data (browser bookmarks and history and mails). Strongly not recommended.
Thunderbird profile and directories are on my storage discs not home. Same for Firefox. I have restored both home and / successfully with Timeshift.
I mean why do you think Timeshift gives the option to save the Home folder/partition?
MB: Gigabyte model: B650M AORUS ELITE AX Memory: Corsair Low Profile Vengeance 32.00 GB. CPU Ryzen7600x Platform: x86_64 Distribution: Linux Mint 21.2
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

AZgl1800 wrote: Mon Jul 04, 2022 6:01 pm I quit using BackInTime when I discovered that it will NOT let you recover your data, when you change the OS.
Without any further information it is near to impossible to give a precise answer. But it seems so, that you did not change the name of the machine in the advanced settings after you changed the machine, so that the host-name did not match any more. From the documentation about the advanced settings:
The full snapshot path will be shown below. You can change them to match paths from other machines.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

OunceofCommonSense wrote: Mon Jul 04, 2022 6:35 pm I mean why do you think Timeshift gives the option to save the Home folder/partition?
For very special cases, where you switch between quite different distributions, where the settings in home do not work if they are taken from the previous system. In such a case there is the possibility, that you wouldn't be able to use the main account.
This is not the usual case. But the op asks - to my understanding - about the usual case.
Further more the usual case is, that user keep the profiles for browser and mail-client in their home. You are of course free to do it differently, but your unusual usage of TS is in any case as I already wrote not recommended (and btw in the first post you did not even say, that you have set those profile to another drive, so nobody can consider this).
OunceofCommonSense
Level 5
Level 5
Posts: 677
Joined: Mon Oct 01, 2012 3:52 pm

Re: Backing up system

Post by OunceofCommonSense »

Cosmo. wrote: Tue Jul 05, 2022 4:39 am
For very special cases, where you switch between quite different distributions, where the settings in home do not work if they are taken from the (and btw in the first post you did not even say, that you have set those profile to another drive, so nobody can consider this).
I think if you reread my initial post I did say my Thunderbird profile and folders were in a separate partition from Home
MB: Gigabyte model: B650M AORUS ELITE AX Memory: Corsair Low Profile Vengeance 32.00 GB. CPU Ryzen7600x Platform: x86_64 Distribution: Linux Mint 21.2
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

Agreed: I have read over it.

This doesn't change anything about the fact, that including home in a usual case is strongly dis-advised and you know now, why this option exists at all.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11184
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Backing up system

Post by AZgl1800 »

Cosmo. wrote: Tue Jul 05, 2022 4:29 am
AZgl1800 wrote: Mon Jul 04, 2022 6:01 pm I quit using BackInTime when I discovered that it will NOT let you recover your data, when you change the OS.
Without any further information it is near to impossible to give a precise answer. But it seems so, that you did not change the name of the machine in the advanced settings after you changed the machine, so that the host-name did not match any more. From the documentation about the advanced settings:
The full snapshot path will be shown below. You can change them to match paths from other machines.
had identical PC/user names in both OS versions
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Backing up system

Post by Cosmo. »

AZgl1800 wrote: Tue Jul 05, 2022 10:20 pm had identical PC/user names in both OS versions
But near to sure not the machine's name. I pointed to this by underlining the respective part of the quote.
Also possible: A different number (which is part of the snapshot path) for the profile.
Locked

Return to “Beginner Questions”