Backup /home with Timeshift

willyum

Member
Joined
Apr 28, 2020
Messages
55
Reaction score
12
Credits
515
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.
 


Easier to use deja-dup or pika-backup, as they are designed to back up /home.
 
@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
 
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.
 
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.
 
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
 
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.
 
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.
 
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.
 

Members online


Top