Timeshift: System Restore Tool for Linux
Timeshift is a Linux tool similar to Windows' System Restore and Mac OS' Time Machine. It creates system snapshots for users to revert to previous states. Find more on Timeshift's GitHub page.
Read original articleTimeshift is a Linux application offering functionality akin to Windows' System Restore and Mac OS' Time Machine. It safeguards systems by capturing incremental snapshots of the file system periodically, enabling users to revert to prior states when necessary. For further details on Timeshift, including features, installation guidelines, and identified problems, refer to the Timeshift GitHub page.
Related
Chris Titus Tech's Windows Utility – Install Programs, Tweaks, Fixes and Updates
A GitHub repository offers Chris Titus Tech's Windows Utility for Windows tasks optimization. Admin mode is required for system-wide changes. Features include program management, tweaks, issue fixing, and update control. Visit the repository for more.
Show HN: Xcapture-BPF – like Linux top, but with Xray vision
0x.tools simplifies Linux application performance analysis without requiring upgrades or heavy frameworks. It offers thread monitoring, CPU usage tracking, system call analysis, and kernel wait location identification. The xcapture-bpf tool enhances performance data visualization through eBPF. Installation guides are available for RHEL 8.1 and Ubuntu 24.04.
Time, Partitioning, and Synchronization
The article explores time measurement challenges like partitioning and synchronization. It discusses their relationship, impact of synchronization points, space magnitude on self-correction, and how truth size affects partitioning difficulty.
Below: A time travelling resource monitoring tool
Facebook's resource control team introduces "below," a new Linux system monitoring tool addressing existing tool deficiencies. It offers user-friendly features, historical data recording, process navigation, and compatibility across kernels.
Show HN: I quit my job and made an automatic time tracker
Taim is an automated time tracking software for freelancers, offering manual or automatic session recording, app tracking, analytics, customization, and integration with apps like Asana and Jira. It provides efficient billing options and a one-time purchase with free updates. Available for pre-order.
- Several users share their alternative backup setups, such as using restic + rclone, Snapper on openSUSE, and Borg for automated backups.
- Some users express their satisfaction with Timeshift, highlighting its ease of use and reliability in restoring systems after issues.
- There are discussions about the limitations of Timeshift, particularly its inability to back up user files and issues with encrypted drives.
- Comparisons are made between Timeshift and other tools like BackInTime, Duplicity/Déjà Dup, and ZFS Snapshots, with some users preferring these alternatives for their specific needs.
- Comments also touch on the integration of backup tools in different Linux distributions, such as NixOS and openSUSE, and the importance of having reliable backup solutions.
https://amontalenti.com/2024/06/19/backups-restic-rclone
The tools I use on Linux for backup are restic + rclone, storing my restic repo on a speedy USB3 SSD. For offsite, I use rclone to incrementally upload the entire restic repository to Backblaze B2.
The net effect: I have something akin to Time Machine (macOS) or Arq (macOS + Windows), but on my Linux laptop, without needing to use ZFS or btrfs everywhere.
Using restic + some shell scripting, I get full support for de-duplicated, encrypted, snapshot-based backups across all my "simpler" source filesystems. Namely: across ext4, exFAT, and (occasionally) FAT32, which is where my data is usually stored. And pushing the whole restic repo offsite to cloud storage via rclone + Backblaze completes the "3-2-1" setup straightforwardly.
Snapper on openSUSE is integrated with both zypper (package manager) and YaST (system configuration tool) [1], so you get automatic snapshots before and after destructive actions. Also, openSUSE defaults to btrfs, so the snapshots are filesystem-native.
[0]: http://snapper.io/
I have used Linux for 10+ years but over the I have spent hours, days and weeks trying to undo or fix little issues I introduce by tinkering around with things. Often I seem to break things at the worst times, right as I am starting to work on some new project or something that is time sensitive.
Now, I can just roll back to an earlier stable version if I don't want to spend the time right then on troubleshooting.
I've enabled this on all my family members machines and teach them to just roll back when Linux goes funky.
Similarly, it doesn't do anything in regards to user files.
This makes no sense! System Restore is a useless wart that just wastes time making "restore points" at every app/driver install and can rarely (if ever) produce a working system when used to "restore" anything. It does not back up user data at all. Time Machine is a whole-system backup solution that seems to work quite well and does back up user data.
To me the quoted statement might as well read "a tool similar to knitting needles (in hobby shops) and dremels (in machine shops)"
Reading their description further, it seems like they are implementing something similar to TimeMachine (within the confines of what linux makes possible), and not at all like "System Restore". This seems sane as this implements something that is actually useful. They, sadly, seem to gloss over what the consequences are of using non-btrfs FS with this tool, only mentioning that btrfs is needed for byte-exact snapshots. They do not mention what sort of byte-inexactness ext4 users should expect...
The license conflict and OpenZFS always having to chase kernel releases often resulting in delayed releases for new kernels means I cannot confidently use them with rolling release distros on the boot drive. If I muck something up, the data drives will be offline for a few minutes till I fix the problem. Doing the same with the boot drive is pain I can live without.
> Timeshift is similar to applications like rsnapshot, BackInTime and TimeVault but with different goals. It is designed to protect only system files and settings. User files such as documents, pictures and music are excluded.
On the other hand, a quick search looking for "that zfs based time machine thing" did reveal a new (to me) project that looks very interesting:
The root partition / and the home partition /home are different.
There's a /home/etc/ folder with a very small set of configuration files I want to save, everything else is nuked on reinstall.
When I do a reinstall, the root partition is formatted, the /home partition is not.
This allows me to test different distros and not be tied to any particular distro or any particular backup tool, if I test a distro and I don't like it, then it is very easy to change it.
Folks who have run into issues, what was the root cause?
Currently the local folder is a samba mount so it's off-site.
The only tip I'd have for people using Borg is to verify your backups frequently. It can get corrupted without much warning. Also if you want quick and somewhat easy monitoring of backups being created you can use webmin to watch for the modifications in the backup folder and send an email if there isn't a backup being sent in a while. Similarly, you can regularly scan the Borg repo and send email in case of failures for manual investigation.
This is low tech, at least lower tech than elastic stack or promstack, but it gets the job done.
I remember working in a company that had a robot WORM system. It would grab a disc, it would be processed, take it out, place it among the archives. If a restore as needed the robot would find the backup, and read off the data.
I never worked directly on the system, and I seem to remember there was a window that the system could keep track of (naturally) but older disks were stored off site somewhere for however long that window was.
(Everything was replicated to a fully 100% duplicate system geographically highly separated from the production system.
I also tried to update it, when the graphical shell displayed a message saying that update is available. Of course, it bricked the system.
I've switched from Ubuntu to Mint to Debian to Fedora to Arch to Manjaro for personal use and had to support a much wider variety of distributions professionally. My experience so far has been that upgrades inevitably damage the system. Most don't survive even a single upgrade. Arch-like systems survive several major package upgrades, but also start falling apart with time. Every few years enough problems accumulate that merit either a complete overhaul or just starting from scratch.
With this lesson learned, I don't try to work with backups for my own systems. When the inevitable happens, I try to push forward to the next iteration, and if some things to be lost, then so be it. To complement this, I try to make the personal data as small and as simple to replicate and to modify moving forward as possible. I.e. I would rule against using filesystem snapshots in favor of storing the file contents. I wouldn't use symbolic links (in that kind of data) because they can either break or not be supported in the archive tool. I wouldn't rely on file ownership or permissions (god forbid ACLs!) Try to remove as much of a "formatting" information as possible... so I end up with either text files or images.
This is not to discourage someone from building automated systems that can preserve much richer assembly of data. And for some data my approach would simply be impossible due to requirements. But, on a personal level... I think it's less of a software problem and more of a strategy about how not to accumulate data that's easy to lose.
https://www.geeksmatrix.com/2024/07/linux-mint-220-whats-new...
Saved my ass a few times.
Random notes/suggestions
- rsync is not a snapthot tool, so while in most of the cases we can rsync a live volume issueless on a desktop it's not a good idea doing so
- zfs support in 2024 is a must, btrfs honestly is the proof of how NOT to manage storage, like stratis
- it seems not much a backup tool, witch is perfectly fine but since the target seems to be end users not too much IT literate it should be stated clear...
I know it won't have the atomicity of a CoW fs, but I'd be fine with that, as the important files on my systems aren't often modified, especially during a backup - I'd configure it to disable the systemd timers while the backup process is running.
Sounds like it works similarly to git fork on GitHub? That is, if no files have changed, the snapshot doesn't take up any extra room?
Related
Chris Titus Tech's Windows Utility – Install Programs, Tweaks, Fixes and Updates
A GitHub repository offers Chris Titus Tech's Windows Utility for Windows tasks optimization. Admin mode is required for system-wide changes. Features include program management, tweaks, issue fixing, and update control. Visit the repository for more.
Show HN: Xcapture-BPF – like Linux top, but with Xray vision
0x.tools simplifies Linux application performance analysis without requiring upgrades or heavy frameworks. It offers thread monitoring, CPU usage tracking, system call analysis, and kernel wait location identification. The xcapture-bpf tool enhances performance data visualization through eBPF. Installation guides are available for RHEL 8.1 and Ubuntu 24.04.
Time, Partitioning, and Synchronization
The article explores time measurement challenges like partitioning and synchronization. It discusses their relationship, impact of synchronization points, space magnitude on self-correction, and how truth size affects partitioning difficulty.
Below: A time travelling resource monitoring tool
Facebook's resource control team introduces "below," a new Linux system monitoring tool addressing existing tool deficiencies. It offers user-friendly features, historical data recording, process navigation, and compatibility across kernels.
Show HN: I quit my job and made an automatic time tracker
Taim is an automated time tracking software for freelancers, offering manual or automatic session recording, app tracking, analytics, customization, and integration with apps like Asana and Jira. It provides efficient billing options and a one-time purchase with free updates. Available for pre-order.