Backup /home with Timeshift

willyum

Member
Joined
Apr 28, 2020
Messages
35
Reaction score
10
Credits
343
Is it possible to exclude all of / and just backup /home with Timeshift? Or is that beyond it's purpose? Excluding /root only excludes the /root folder, not all of /. I tried excluding /** and then including /home/**, but there are still a lot of folders and contents in / that get included in the backup.
 


craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
415
Reaction score
414
Credits
2,862
Easier to use deja-dup or pika-backup, as they are designed to back up /home.
 

gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
458
Reaction score
550
Credits
4,663
@craigevil is totally right. Adding a bit more context, timeshift is designed as a system recovery tool, meaning that you can recover the whole system after a catastrophic failure because it creates snapshots of the files that are not caches or re-generable on a normal startup. They are excluding user directories by default as they would make the snapshots too big.

The alternatives that @craigevil recommends are not only the right tool for the job and more configurable, but they also won't prevent you from using Timeshift for the rest of the system (as for example I do):
Screenshot_20230318_001739.png
 
OP
W

willyum

Member
Joined
Apr 28, 2020
Messages
35
Reaction score
10
Credits
343
Not to argue your good advice, but just to seek the reasons why. During my first experiments with Timeshift, I said ah ha, simply switch the includes with the excludes and you can do either or both system and/or user files. How nice. But no. You can do that, but it still includes some of the system files even if you set it not to. What is it that makes Timeshift suitable for only system files and why?

I used Deja dup and it works just fine. From a user standpoint, I'm not sure that I like it any better than Grsync. Are there any advantages of one over the other? Pika Backup is not in the repository. So, I haven't tried it yet.
 
OP
W

willyum

Member
Joined
Apr 28, 2020
Messages
35
Reaction score
10
Credits
343

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
5,914
Reaction score
4,919
Credits
36,970
We will call the expert in the matter of all things Timeshift

@wizardfromoz

he will arrive at a time of his own choosing

be patient.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,425
Reaction score
7,350
Credits
33,719
Not all things, Brian - my expertise in Timeshift is limited to EXT4 filesystem.

If the OP has done a default install of his Fedora, he is likely using Butter FS (aka Better FS), that is BTRFS. I use EXT4 on my Fedora.

I'll come back with a couple of salient points, but I cannot go into extensive detail.

Wizard
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,577
Reaction score
4,149
Credits
40,723
Timeshift is designed to protect system files and settings. It is NOT a backup tool and is not meant to protect user data. Entire contents of users' home directories are excluded by default. This has two advantages: Read the rest from the source link.
If you want to backup files you are better off using a tool that is designed to backup user data since timeshift is a system backup tool to go back to a point in time.
 

gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
458
Reaction score
550
Credits
4,663
What is it that makes Timeshift suitable for only system files and why?
The design and the intent of the tool. It has been created for that, you should expect some side effects when you try to use it outside of its scope.

Every backup created with timeshift includes the system files that the tool will need to execute a recovery that involves a reboot and that potentially can include grub, because that's its mission.
 
OP
W

willyum

Member
Joined
Apr 28, 2020
Messages
35
Reaction score
10
Credits
343
Not all things, Brian - my expertise in Timeshift is limited to EXT4 filesystem.

If the OP has done a default install of his Fedora, he is likely using Butter FS (aka Better FS), that is BTRFS. I use EXT4 on my Fedora.

I'll come back with a couple of salient points, but I cannot go into extensive detail.

Wizard
I do use ext4.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,425
Reaction score
7,350
Credits
33,719
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top