Timeshift and the Settings

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
HaveaMint
Level 3
Level 3
Posts: 138
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in th USA
Contact:

Timeshift and the Settings

Post by HaveaMint » Wed Jul 11, 2018 4:30 am

Timeshift as many have explained is designed to backup the file system only. It isn’t intended to be used to backup your personal files. Backintime is a good tool to backup your personal files.
The default setting will select the first partition because if someone lets Mint install itself without setting specific partitions it will install everything on one partition.
If you select a partition scheme like ( root, home,swap) then you would go into Timeshift settings “Location” and select either Home or an external device.
In my partitioning scheme I selected four partitions (root,home,backup,swap) This is where you need to do a different setting in Timeshift. ANY other partitions other than home or swap is NOT excluded in the backup process and can make for a HUGE backup.
So in Timeshift settings under Filters you will need to Exclude unwanted partitions and other Hard drives if any.
One further note: If you have a snapshot (Hopefully on an external drive also) and you re-partition your drive, the recovery of your saved snapshot will not work without some time consuming tinkering. The UUID's will be different after you make new partitions.
Last edited by HaveaMint on Thu Jul 12, 2018 3:57 am, edited 3 times in total.
"Tune for maximum Smoke and then read the Instructions".

Marziano
Level 7
Level 7
Posts: 1682
Joined: Thu Jan 04, 2018 1:00 pm

Re: Timeshift and the Settings

Post by Marziano » Wed Jul 11, 2018 4:42 am

HaveaMint wrote:
Wed Jul 11, 2018 4:30 am
ANY other partitions other than home or swap is NOT excluded in the backup process and can make for a HUGE backup.
So in Timeshift settings under Filters you will need to Exclude unwanted partitions and other Hard drives if any.
Partitions mounted under /media/* and /mnt/* are by default excluded from the snapshots (see Settings:Filters:Summary).

In case one has opted to mount a device directly under /, then this should be filtered out, if one doesn't want it to be backed up.

Unmounted partitions are not included in the snapshots.

If you want to see what is excluded by default, you can do so by not choosing anything to be included in the snapshot under Settings:Users.
Next, head for Filters:Summary.
"Those are my principles, and if you don't like them...well, I have others." -Marx...
Groucho { Marx

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

Re: Timeshift and the Settings

Post by HaveaMint » Wed Jul 11, 2018 5:28 am

Marziano wrote:
Wed Jul 11, 2018 4:42 am
HaveaMint wrote:
Wed Jul 11, 2018 4:30 am
ANY other partitions other than home or swap is NOT excluded in the backup process and can make for a HUGE backup.
So in Timeshift settings under Filters you will need to Exclude unwanted partitions and other Hard drives if any.
Partitions mounted under /media/* and /mnt/* are by default excluded from the snapshots (see Settings:Filters:Summary).

In case one has opted to mount a device directly under /, then this should be filtered out, if one doesn't want it to be backed up.

Unmounted partitions are not included in the snapshots.

If you want to see what is excluded by default, you can do so by not choosing anything to be included in the snapshot under Settings:Users.
Next, head for Filters:Summary.
My /backup partition isn't under either of those.
partition.jpg
"Tune for maximum Smoke and then read the Instructions".

Marziano
Level 7
Level 7
Posts: 1682
Joined: Thu Jan 04, 2018 1:00 pm

Re: Timeshift and the Settings

Post by Marziano » Wed Jul 11, 2018 5:40 am

/backup looks like being mounted under root of the file system "/".
You can mount it instead under /mnt or /media in order for it to be excluded from the snapshots by default. Or simply filter it out.
Last edited by Marziano on Wed Jul 11, 2018 5:48 am, edited 1 time in total.
"Those are my principles, and if you don't like them...well, I have others." -Marx...
Groucho { Marx

User avatar
AZgl1500
Level 7
Level 7
Posts: 1680
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: Timeshift and the Settings

Post by AZgl1500 » Wed Jul 11, 2018 5:47 am

My laptop has 4 partitions and Timeshift is set to the last one for easy AutoBackups w/o an external drive.


Pictures really help a lot for newbies, let them see what we are talking about.

Image



Image



and here, Timeshift has dutifully backed up any minor changes to the System.
But, as the Gparted pix shows, it does not take up a lot of room to save "the differences".


Image

and for Newbies, advise them to label what those Manual Backups mean, highlight the last one you made, left click, type in something meaningful, hit <enter> to save it. The letter 'D' means an automated Daily Backup.

In the last Manual Update, the letter 'O' means "On Demand", note that it mentions "crontab job added".
That means that I have setup a crontab job to do daily AutoMated System Updates to the laptop.
Level 1, 2, 3 only plus Security Updates Only for Level 4, and ' -nk ' which means " do NOT update the kernel ".

Why? because kernel updates always destroy the WiFi configuration on ASUS laptops with MediaTek WiFi adapters.
if you are not home, or have access to a LAN, you are screwed!
as I am now, 1500 miles from home staying in motels until next week.

My crontab looks like this:
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command

PATH="/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin"

0 12 * * * cat /home/john/add-line >> /home/john/mintupdatetoolcron.log

1 12 * * * date >> /home/john/mintupdatetoolcron.log

2 12 * * * mintupdate-tool -r -l 123 -y -s -nk upgrade >> /home/john/mintupdatetoolcron.log

0 18 * * * date >> /home/john/fstrim.log

5 18 * * * sudo fstrim -a -v >> /home/john/fstrim.log

Everyday at noon, add a dotted line, one minute later, add the date, one minute later, apply updates if any.
at 6 pm, Trim the blanks spaces on the SSD.
Last edited by AZgl1500 on Wed Jul 11, 2018 6:06 am, edited 1 time in total.

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

Re: Timeshift and the Settings

Post by HaveaMint » Wed Jul 11, 2018 5:53 am

Here in filters you can add files or folders to exclude, Also the Summary will show you what is already excluded by default.
filters.jpg
"Tune for maximum Smoke and then read the Instructions".

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

Re: Timeshift and the Settings

Post by HaveaMint » Wed Jul 11, 2018 6:26 am

Marziano wrote:
Wed Jul 11, 2018 4:42 am
HaveaMint wrote:
Wed Jul 11, 2018 4:30 am
.
.
I didn't use extended partitions
partition.jpg
"Tune for maximum Smoke and then read the Instructions".

Marziano
Level 7
Level 7
Posts: 1682
Joined: Thu Jan 04, 2018 1:00 pm

Re: Timeshift and the Settings

Post by Marziano » Wed Jul 11, 2018 6:59 am

HaveaMint wrote:
Wed Jul 11, 2018 6:26 am
I didn't use extended partitions
No, you didn't. But you have mounted /dev/sda3 (which is your backup partition) atbackup under /, thereby /backup is the mount point as it is shown in the screenshot from Gparted.

If/dev/sda3 was mounted atbackup under, say, /media, the mount point would show as /media/backup and it would be excluded from the snapshots by default.

As it is now it must be filtered out "manually".

Cf. the Gparted view in @AZgl1500's post. He has opted to mount/dev/sda4 (his backup partition) atBackupunder/home/John.
"Those are my principles, and if you don't like them...well, I have others." -Marx...
Groucho { Marx

User avatar
AndyMH
Level 4
Level 4
Posts: 436
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Timeshift and the Settings

Post by AndyMH » Wed Jul 11, 2018 8:24 am

To reinforce what has already been said, you are probably better off mounting your backup under /media or /mnt. I've a separate 1TB backup drive in the ultrabay of my T430, in gparted:
Screenshot from 2018-07-11 13-20-15.png
The corresponding entry in fstab is:

Code: Select all

# mount point for HDD in ultrabay, added 3 feb 18
UUID=5cdf25ee-93ed-41a0-96f5-31ff2f85862c /media/Ultrabay ext4 defaults,nofail 0 2
So I didn't have to change from the default include/exclude definitions in timeshift = less hassle.
Thinkpad T430 i7-3632 Cinnamon 18.3, Thinkpad T420 Cinnamon 18.3, Thinkpad T410 Cinnamon 17.3, Thinkpad T60 19.0 Mate

User avatar
AZgl1500
Level 7
Level 7
Posts: 1680
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: Timeshift and the Settings

Post by AZgl1500 » Wed Jul 11, 2018 11:41 am

Marziano wrote:
Wed Jul 11, 2018 6:59 am
Cf. the Gparted view in @AZgl1500's post. He has opted to mount/dev/sda4 (his backup partition) atBackupunder/home/John.
I did that to allow me to view that partition in NEMO,

Image


but:
I specify the exact folders to backup for personal stuff, e.g.
Documents
Downloads
Pictures
Videos
Music

and nothing else, that is hard-coded into my backup routine.
keeps my backup files as small as possible, and they can float around on various USB drives and nothing gets lost, no matter how many times they get shuffled around.

If anyone is curious, or does not remember my earlier threads, this laptop has 12gB RAM, so it does not need a SWAP file, so 14 mb is a joke really, good for some text files maybe. just didn't bother to merge it into something else.

Marziano
Level 7
Level 7
Posts: 1682
Joined: Thu Jan 04, 2018 1:00 pm

Re: Timeshift and the Settings

Post by Marziano » Wed Jul 11, 2018 11:53 am

AZgl1500 wrote:
Wed Jul 11, 2018 11:41 am
Marziano wrote:
Wed Jul 11, 2018 6:59 am
Cf. the Gparted view in @AZgl1500's post. He has opted to mount/dev/sda4 (his backup partition) atBackupunder/home/John.
I did that to allow me to view that partition in NEMO,
I got it. Did you have to change ownership for the Backup folder, since Timeshift writes to that partition as root?
"Those are my principles, and if you don't like them...well, I have others." -Marx...
Groucho { Marx

User avatar
AZgl1500
Level 7
Level 7
Posts: 1680
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: Timeshift and the Settings

Post by AZgl1500 » Wed Jul 11, 2018 1:49 pm

Marziano wrote:
Wed Jul 11, 2018 11:53 am
AZgl1500 wrote:
Wed Jul 11, 2018 11:41 am
Marziano wrote:
Wed Jul 11, 2018 6:59 am
Cf. the Gparted view in @AZgl1500's post. He has opted to mount/dev/sda4 (his backup partition) atBackupunder/home/John.
I did that to allow me to view that partition in NEMO,
I got it. Did you have to change ownership for the Backup folder, since Timeshift writes to that partition as root?
No, Timeshift did not complain, continues to perform as it should.

I set /backup to be readable in NEMO only a couple weeks ago, hasn't always been that way.


I did it in fstab with a lot of coaching from the gurus here:

Code: Select all

  GNU nano 2.5.3                           File: /etc/fstab                                                             

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=25ddd311-91ad-4b80-91f1-ebb7955c288e /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=d7c79352-1e33-4f28-9827-613f919beb6d /home           ext4    defaults        0       2
# swap was on /dev/sda3 during installation
#  swap is only  14 mib, disabling it as there is 12 gB of RAM
# UUID=b330d87c-6ce6-43de-be6d-e221cabae2e9 none            swap    sw              0       0
#
#  
# 
UUID=ab702213-06ea-40ad-be34-3e5ab74cece5 /home/john/Backup ext4 defaults,noatime 0 3

Marziano
Level 7
Level 7
Posts: 1682
Joined: Thu Jan 04, 2018 1:00 pm

Re: Timeshift and the Settings

Post by Marziano » Wed Jul 11, 2018 1:58 pm

Alright. Good idea to have it set up like that for having easy access and overview. My drive being crammed with several OS:es, I keep my snapshots on an ext. drive. Works alright that way also. Just have to hook it up all too often to take the snaps and hopefully not all too often to restore.
"Those are my principles, and if you don't like them...well, I have others." -Marx...
Groucho { Marx

Post Reply

Return to “Tutorials”