Timeshift: should these patterns be excluded in snapshots?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
Pangolin
Level 3
Level 3
Posts: 116
Joined: Sat Sep 12, 2015 4:16 pm

Timeshift: should these patterns be excluded in snapshots?

Post by Pangolin » Thu Jul 05, 2018 4:14 pm

Hi all.
I've just installed LM 19 and now I would like to properly configure Timeshift.
I am no expert so I can't figure out how the following settings can affect the chance of a succesful restoration of my system should it go bananas:
TS-exclude-patterns.png
Can you please give me advice?
And what's the difference between /root/*** and /root/** ?
I'm here thanks to Windows 10

User avatar
AZgl1500
Level 9
Level 9
Posts: 2592
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Timeshift: should these patterns be excluded in snapshots?

Post by AZgl1500 » Thu Jul 05, 2018 10:34 pm

stay with the defaults,

until you get a lot of practice, stay with the defaults.

User avatar
Pierre
Level 17
Level 17
Posts: 7405
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Timeshift: should these patterns be excluded in snapshots?

Post by Pierre » Thu Jul 05, 2018 11:29 pm

the TimeShift program is typically used to backup the System Files AKA in /root

the Mint Backup Tool is typically used to backup the User Files AKA in /home

so, that's Two Program, that are used for Two Different Area.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

Pangolin
Level 3
Level 3
Posts: 116
Joined: Sat Sep 12, 2015 4:16 pm

Re: Timeshift: should these patterns be excluded in snapshots?

Post by Pangolin » Fri Jul 06, 2018 3:10 am

Thanks guys.
So I should check all of the radio buttons in the "plus" column, right?
Why do I have 2 /root/ paths in the list?
I'm here thanks to Windows 10

azalea4va
Level 1
Level 1
Posts: 8
Joined: Mon Feb 16, 2015 12:08 pm

Re: Timeshift: should these patterns be excluded in snapshots?

Post by azalea4va » Thu Jul 19, 2018 1:37 am

It appears nobody has answers the OP's original question (except to say your question is unimportant, just stick with the defaults). I am responding for tw reasons. First, what is the answer to the question, if anybody knows? Second, how can such a prominent program in this release be provided without ANY documentation?

Does anyone no the difference between /dir/* /dir/** and /dir/*** in a Timeshift pattern? Are there other symbols with special meanings, such as things like '?' (commonly used to mean match any single character) and '[0-9]' (commonly used to mean matches a specific set of characters)?

I have looked for documentation on my system, lokking for "help" within the Timeshift program, usng 'man', and using 'info'. Nothing. I have searched the internet trying to find some documentation on timeshift, but have found none (other than general explanations provided by non-authors). To distribute a program with NO documentation is just NOT acceptable. For Mint to do so, especially to make a program a highlight of what a new distribution has ot offer, yet have no documentation for that software, well that is inexcusable.
Last edited by azalea4va on Mon Jul 23, 2018 3:40 pm, edited 1 time in total.

HaveaMint
Level 4
Level 4
Posts: 372
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in th USA
Contact:

Re: Timeshift: should these patterns be excluded in snapshots?

Post by HaveaMint » Thu Jul 19, 2018 2:07 am

As AG stated, the Original purpose of Timeshift is to backup the system files and not your personal files. This way if you need to restore the system you do not mess with any personal files. The /home directory or partition depending on how you setup the partitioning scheme is therefore NOT backed up. If you look at the directory structure /home is in it so it needs to be excluded.
As to your question on * and **, one * is wildcard for one level only and ** two is recursive meaning everything in all sub-directories.
Clear as mud now?
As to the documentation part Idonno I didn't write it :D
Never Never use *** three because it will remove your little toe. :lol:
Last edited by HaveaMint on Thu Jul 19, 2018 2:26 am, edited 1 time in total.
"Tune for maximum Smoke and then read the Instructions".

User avatar
smurphos
Level 7
Level 7
Posts: 1601
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Timeshift: should these patterns be excluded in snapshots?

Post by smurphos » Thu Jul 19, 2018 2:14 am

Timeshift documentation - https://github.com/teejee2008/timeshift

Unfortunately, it doesn't shed much light on the filters syntax, but HaveaMint's explanation makes sense.

User avatar
slipstick
Level 5
Level 5
Posts: 783
Joined: Sun Oct 21, 2012 9:56 pm
Location: Somewhere on the /LL0 scale

Re: Timeshift: should these patterns be excluded in snapshots?

Post by slipstick » Thu Jul 19, 2018 2:38 am

I don't use encryption as the OP apparently does, but I use TS to back up system files, including /root and the hidden files (configuration files) in my /home directory. I back up /root because it will not be backed up by my data backup program (back-in-time), so would not otherwise be backed up. Also, I back up the hidden configuration files in my /home because if I have to restore the system, I want all my applications to be configured the way I have set them up (I also back these files up with back-in-time as part of my data backup). There has been some controversy on this last point - some say that you shouldn't back up the config. files in home with TS, because if you have made recent changes to them, after your last TS snapshot and then have to use TS to restore the system, you will lose your recent changes. My view is that in that case, you can exclude these files from the restore operation.

As for the /dir/*, /dir/**, /dir/***, I assume this comes from rsync which is the foundation of TS. Open a terminal and type "man rsync", then scroll down to somewhere in the last half of the very long document to the section titled "INCLUDE/EXCLUDE PATTERN RULES". Have fun trying to interpret all that. :D

EDIT to add:
Tony George, the creator of TS used to have a manual which he would e-mail you if you made a small donation to him. He seems to have removed that manual for donation bit from his home page, or at least I can't find it any more. The closest thing to a manual I can find now is here:
https://github.com/teejee2008/timeshift
In theory, theory and practice are the same. In practice, they ain't.

User avatar
smurphos
Level 7
Level 7
Posts: 1601
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Timeshift: should these patterns be excluded in snapshots?

Post by smurphos » Thu Jul 19, 2018 3:24 am

slipstick wrote:
Thu Jul 19, 2018 2:38 am
As for the /dir/*, /dir/**, /dir/***, I assume this comes from rsync which is the foundation of TS. Open a terminal and type "man rsync", then scroll down to somewhere in the last half of the very long document to the section titled "INCLUDE/EXCLUDE PATTERN RULES". Have fun trying to interpret all that. :D
Tip for easier reading on long man pages...

yelp man:rsync

Ctrl-F to search the document....

HaveaMint
Level 4
Level 4
Posts: 372
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in th USA
Contact:

Re: Timeshift: should these patterns be excluded in snapshots?

Post by HaveaMint » Thu Jul 19, 2018 3:27 am

a '*' matches any path component, but it stops at slashes.

use '**' to match anything, including slashes.

Much of what I stated
"Tune for maximum Smoke and then read the Instructions".

User avatar
AZgl1500
Level 9
Level 9
Posts: 2592
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Timeshift: should these patterns be excluded in snapshots?

Post by AZgl1500 » Thu Jul 19, 2018 7:48 am

slipstick wrote:
Thu Jul 19, 2018 2:38 am
"INCLUDE/EXCLUDE PATTERN RULES". Have fun trying to interpret all that. :D

EDIT to add:
Tony George, the creator of TS used to have a manual which he would e-mail you if you made a small donation to him. He seems to have removed that manual for donation bit from his home page, or at least I can't find it any more. The closest thing to a manual I can find now is here:
https://github.com/teejee2008/timeshift

Oh, but he still does, I sent him PayPal$$$ and he emailed me the manual for Timeshift, just this past week.


Image

User avatar
smurphos
Level 7
Level 7
Posts: 1601
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Timeshift: should these patterns be excluded in snapshots?

Post by smurphos » Thu Jul 19, 2018 8:24 am

AZgl1500 wrote:
Thu Jul 19, 2018 7:48 am
Oh, but he still does, I sent him PayPal$$$ and he emailed me the manual for Timeshift, just this past week.
Hey everyone - all Timeshift queries directly to AZgl1500 from now on! :D

User avatar
JerryF
Level 10
Level 10
Posts: 3031
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Timeshift: should these patterns be excluded in snapshots?

Post by JerryF » Thu Jul 19, 2018 10:39 am

Pangolin wrote:
Thu Jul 05, 2018 4:14 pm
Hi all.
I've just installed LM 19 and now I would like to properly configure Timeshift.
I am no expert so I can't figure out how the following settings can affect the chance of a succesful restoration of my system should it go bananas:
TS-exclude-patterns.png
Can you please give me advice?
And what's the difference between /root/*** and /root/** ?
Did you enter these filters yourself or were they already there?

As for the wildcards, I don't know. :?:
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
AZgl1500
Level 9
Level 9
Posts: 2592
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Timeshift: should these patterns be excluded in snapshots?

Post by AZgl1500 » Thu Jul 19, 2018 10:50 am

smurphos wrote:
Thu Jul 19, 2018 8:24 am
AZgl1500 wrote:
Thu Jul 19, 2018 7:48 am
Oh, but he still does, I sent him PayPal$$$ and he emailed me the manual for Timeshift, just this past week.
Hey everyone - all Timeshift queries directly to AZgl1500 from now on! :D
Oh, I would love to, but part of the agreement he requests is that no one pass that manual around,
he doesn't specify how expensive that Cup of Coffee should be.... but I bought him the Large Size :mrgreen:

azalea4va
Level 1
Level 1
Posts: 8
Joined: Mon Feb 16, 2015 12:08 pm

Re: Timeshift: should these patterns be excluded in snapshots?

Post by azalea4va » Mon Jul 23, 2018 3:45 pm

I assume this comes from rsync
Great guidance. Provides the following explantion.
  1. /dir/ Backups up just the directory but not its contents.
  2. /dir/* Backups up the directory's contents but only one-level deep.
  3. /dir/** Backups up the direcory's contents, descending through all sub-directories.
  4. /dir/*** A combination of 1 and 3.

Post Reply

Return to “Software & Applications”