rsync-time-backup
snapper
rsync-time-backup | snapper | |
---|---|---|
18 | 33 | |
3,311 | 828 | |
- | 1.4% | |
5.2 | 9.0 | |
5 months ago | 9 days ago | |
Shell | C++ | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rsync-time-backup
-
Python Port of 600 Line Bash Script: rsync-time-machine.py for Rsync Backups
Hi Hacker News,
I'm excited to share my recent project, where I took on the challenge of porting a popular but untested 600+ line Bash script to Python. The outcome is [`rsync-time-machine.py`](https://github.com/basnijholt/rsync-time-machine.py), a Python implementation of the [`rsync-time-backup`](https://github.com/laurent22/rsync-time-backup) script. It provides Time Machine-style backups using rsync and creates incremental backups of files and directories to the destination of your choice.
The tool is designed to work on Linux, macOS, and Windows (via WSL or Cygwin). Its advantage over Time Machine is its flexibility - it can backup from/to any filesystem and works on any platform. You can also backup to a Truecrypt drive without any issues.
Unlike the original Bash script, `rsync-time-machine.py` is fully tested. It has no external dependencies (only requires Python β₯3.7), and it is fully compatible with [`rsync-time-backup`](https://github.com/laurent22/rsync-time-backup). It offers pretty terminal output and is fully typed.
Key features include:
* Each backup is in its own folder named after the current timestamp.
-
Ported a popular (untested) 600+ Line Bash Script π to Python π: Introducing rsync-time-machine.py for Time Machine-Style Backups Using Rsync πβ°
I'm excited to share my recent project, where I took on the challenge of porting a popular but untested 600+ line Bash script to Python. The outcome is rsync-time-machine.py, a Python implementation of the rsync-time-backup script. It provides Time Machine-style backups using rsync and creates incremental backups of files and directories to the destination of your choice.
-
Time Machine(-like) backup of external drives?
Here's a script that someone made that simplifies the setup. I haven't used this script, but it looks pretty good: https://github.com/laurent22/rsync-time-backup
-
Backing up Linux machines to my home server?
https://github.com/laurent22/rsync-time-backup or https://torsion.org/borgmatic/ could come in handy.
- Just lost my savegame.....need some help or advice.
-
I just got a sleeve for my MBP and plugged in a drive placed inside it. Should I just backup my Mac with time machine, or do that and have a 2nd partition with rsync backups?
If you are interested, you can check it out here: https://github.com/laurent22/rsync-time-backup
- Time Machine backs up external APFS encrypted drive, takes up the space on the TM backup drives, but that volume shows no content when i go to it in the Finder
- Backup Options
-
Looking for advice about how to do NAS and backups
I do most of my backups using some version of this script to (efficiently) keep a long backup history: https://github.com/laurent22/rsync-time-backup
-
University loses 77TB of research data due to backup error
Here is a scripted version. Honestly, Iβd rather roll my own but itβs still helpful: https://github.com/laurent22/rsync-time-backup
snapper
-
Bcachefs Merged into the Linux 6.7 Kernel
I left SUSE close to the end of 2021, and I had had to reinstall my work laptop twice that year alone. I consider that recent enough to call it current.
> df is not lying
To me, that reads as "df isn't lying because $EXCUSES."
I disagree. I don't care about excuses. I want a 100% accurate accounting of free space at all times via the standard xNix free-disk-space reporting command, and the same from the APIs that command uses so that applications can also get an accurate report of free space.
If a filesystem cannot report free space reliably and accurately, then that filesystem is IMHO broken. Excuses do not exonerate the FS, and having other FS-specific commands that can report free space do not exonerate it. The `df` command must work, or the FS is broken.
The primary point of Btrfs is that it is the only GPL snapshot-capable FS. The other stuff is gravy: it's a bonus. There are distros that use Btrfs that don't use snapshots, such as Fedora.
Some Btrfs advocates use this to claim that the problems are not problematic. If the filesystem is of interest on the basis of feature $FOO, then "product $BAR does not exhibit this problem" is not an endorsement or a refutation if $BAR does not use feature $FOO.
Btrfs RAID is broken in important ways, but that is not a deal-breaker because there are other perfectly good ways of obtaining that functionality using other parts of the Linux stack. If no feature or functionality is lost considering the OS and stack as a whole, then that isn't a problem. However, this remains serious and an issue.
Additional problems include:
β’ Poor integration into the overall industry-wide OS stack.
Examples:
- Existing commands do not work or give inconsistent results.
- Duplication of functionality (e.g. overlap with `mdraid`)
β’ Poor integration into specific vendors' OS stacks.
Examples:
- SUSE uses Btrfs heavily.
But SUSE's `zypper` package manager is not integrated with its `snapper` tool. Zypper doesn't include snapshot space used by Snapper in its space estimation.
Snapper is integrated with Btrfs; licence restrictions notwithstanding, I would be much reassured if Snapper supported other COW filesystems.
(This has been attempted but I don't think anything shipped -- https://github.com/openSUSE/snapper/issues/145 . I welcome correction on this!)
The transactional features of SUSE's MicroOS family of distros rely heavily on it. This lack of awareness of snapshot space utilization deeply worries me. I have raised this with SUSE management, but my concerns were dismissed. That worries me.
Red Hat removed Btrfs support from RHEL. As a result it has had to bodge transactional package management together by grafting Git-like functionality into OStree, then building two entirely new packaging systems around OStree, one for the OS itself and a different one for GUI-level packages. The latter is Flatpak, of course.
This strikes me as prime evidence that:
1. Btrfs isn't ready.
-
Desktop Linux Hardening
Very useful. One practical thing to add: enabling automatic snapshots (e.g. with https://github.com/openSUSE/snapper), ideally backing them up separately (e.g., with borg) might help recovery.
-
best practice to keeping Linux environment 'clean'?
I like btrfs snapshots, e.g. with snapper (http://snapper.io/), but that needs a bit of setup (and is out of the box with some distros, e.g. opensuse).
-
New user: some small issues
Use snapper, it's very good and it can be integrated with grub so that you can boot into an snapshot (not sure you can do that with timeshift).
-
Snapper: Trouble setting up /.snapshots mountpoint for custom subvol location
The other big difference, is that I would like to have "flat" hierarchy (at least within the nested distro-specific subvol) for my snapshots. Meaning that I do not like the nested structure of /.snapshots that snapper seems to assume by default and would prefer something like /fedora/snapshots/rootfs instead. It seems this is a somewhat popular request that has been opened for over 8 years... but since it hasn't been implemented in snapper itself, most people just use workarounds.
-
New high-end gaming PC build, need distro suggestion
If, for some reason, anything goes wrong with your system, it is also trivial to return it to a working state, using snapper. This is preconfigured by default, no manual work required.
-
Best configuration for bare hypervisor distro FOR DESKTOP VMs
Are you sure you need a full on virtual machine, rather than a system snapshotting tool like Snapper or Timeshift?
-
snapper list -show-items-about-to-be-deleted, have anyone done it?
I never said it did. Please read. It was meant to demonstrate that the health of the project is questionable, since after thatf ater that change was submitted, the official tests for the project is broken (see the current status on their github page https://github.com/openSUSE/snapper).
- How do you prefer to backup and restore your Fedora system?
-
Just try it, it's glorious
The amazing tooling: - YaST, the best configuration tool out there. I think its fair to say that nothing comes close to the number of things you can configure with Yast. - Open Build Service (OBS), a tool that automatically builds binaries for software and sets up repositories to add to your favorite package manager. Supports every major linux distro but intergrates especially well with the openSUSE software store, and OPI (openSUSE equivelant to something like paru or yay) to be like the AUR but (imo) better. - openQA, Automated testing for any package or operating system, making sure that even on leading edge software, you're still stable. - snapper, out of the box btrfs snapshots that make sure you can (almost) always boot into a useable system, even after a bumpy update.
What are some alternatives?
TimeShift - System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
restic - Fast, secure, efficient backup program
btrbk - Tool for creating snapshots and remote backups of btrfs subvolumes
docker-ssh-gui - A script to use X (gui) app on a remote docker container (using ssh -X)
zfs - OpenZFS on Linux and FreeBSD
raspiBackup - Backup and restore your active Raspberry
snapper-gui - GUI for snapper, a tool for Linux filesystem snapshot management, works with btrfs, ext4 and thin-provisioned LVM volumes
Rsnapshot - a tool for backing up your data using rsync (if you want to get help, use https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss)
docker-pihole-sync - A Docker Container To Sync Two Piholes
snap-sync - Use snapper snapshots to backup to external drive