rsync-time-backup
pyznap
rsync-time-backup | pyznap | |
---|---|---|
18 | 9 | |
3,311 | 198 | |
- | - | |
5.2 | 0.0 | |
5 months ago | about 1 month ago | |
Shell | Python | |
- | 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
pyznap
- Python Port of 600 Line Bash Script: rsync-time-machine.py for Rsync Backups
-
Should I be using zfs replicate, mirror, or something else entirely?
Sanoid/syncoids been mentioned but honestly for once a week learning by doing . Pyznap also excellent when you want to automate. https://github.com/yboetz/pyznap
-
Vdevs and snapshots?
In contrast, zfs snapshots are immutable, and thus anything short of a hardware failure can be addressed with a simple zfs rollback command. This includes deliberate, accidental, and malicious actions. They can also be automated (I personally use pyznap but syncoid is also quite popular), creating what is effectively an incremental backup. I maintain - for each dataset - 24 hourly, 7 daily, 6 monthly, and 1 yearly snapshot. Additionally, I have a wholly separate server that wakes up once a day to ingest these snapshots via zfs send/recv, so even if I made a horrible mistake or suffered a catastrophic hardware failure, I could completely restore from the other server. This last point brings snapshots firmly into the realm of backups, IMO.
-
Sanoid for snapshots management?
Another favorite option is Pyznap, which is python based and originally created to have have a few features and changes compared to sanoid. The author is also active here on reddit. I and not sure what the differences are anymore, it'll come down to trying them and preference.
- Advice on settings for spin-down (Ubuntu Server)
-
A small script to wake up a node that doesn't like to boot
I have two Supermicro X9 2Us, each with Proxmox. One has allegedly existed solely as a backup target, which wakes up daily to ingest ZFS snapshots using pyznap. Unfortunately, for reasons which are unclear, this particular node doesn't always like to see its boot device, which is an NVMe drive. It's the exact same board as my primary, with the exact same modified BIOS to allow booting from NVMe. It usually takes 2-3 cycles before it'll see it and boot.
-
Pros/cons of visible dataset for backups vs. only snapshots
I have two nearly identical systems, both running Proxmox, with Debian VMs. One is a backup, which (once this is worked out) will wake up daily to ingest incremental backups. I'm using pyznap to handle the backup strategy.
-
Ubuntu server 21.04 native encrypted root on zfs zfsbootmenu pyznap
https://github.com/yboetz/pyznap/issues/1#issuecomment-351015432
- Don't do VFIO to save money...or time (opinion piece)
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.
sanoid - These are policy-driven snapshot management and replication tools which use OpenZFS for underlying next-gen storage. (Btrfs support plans are shelved unless and until btrfs becomes reliable.)
restic - Fast, secure, efficient backup program
zfsbackup-go - Backup ZFS snapshots to cloud storage such as Google, Amazon, Azure, etc. Built with the enterprise in mind.
docker-ssh-gui - A script to use X (gui) app on a remote docker container (using ssh -X)
cv4pve-autosnap - Automatic snapshot tool for Proxmox VE
raspiBackup - Backup and restore your active Raspberry
Vault - A tool for secrets management, encryption as a service, and privileged access management
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)
zfs - OpenZFS on Linux and FreeBSD
docker-pihole-sync - A Docker Container To Sync Two Piholes
barrier - Open-source KVM software