ZFS snapshot to S3 uploader.
Project description
ZFS Uploader
Work in progress. Use at your own risk!
ZFS Uploader is a simple program for backing up ZFS full and incremental snapshots to Amazon S3. It supports CRON based scheduling and pruning of old backups.
Features
- Backup/restore ZFS file systems
- Create incremental and full backups
- Prune incremental and full backups
- Prune snapshots
- Use any S3 storage class type
Requirements
- Python 3.6 or higher
- ZFS 0.8.1 or higher (untested on earlier versions)
Install Instructions
Commands should be run as root.
- Create a directory and virtual environment
mkdir /etc/zfs_uploader
cd /etc/zfs_uploader
virtualenv --python python3 env
- Install ZFS Uploader
source env/bin/activate
pip install zfs_uploader
ln -sf /etc/zfs_uploader/env/bin/zfsup /usr/local/sbin/zfsup
- Write configuration file
See sample_config.cfg for config format.
vi config.cfg
chmod 600 config.cfg
- Start service
cp zfs_uploader.service /etc/systemd/system/zfs_uploader.service
sudo systemctl enable --now zfs_uploader
Miscellaneous
Storage class codes
- STANDARD
- REDUCED_REDUNDANCY
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
- GLACIER
- DEEP_ARCHIVE
- OUTPOSTS
Release Instructions
-
Increment version in
__init__.py
file -
Update
CHANGELOG.md
with new version -
Tag release in GitHub when ready. Add changelog items to release description. GitHub Action workflow will automatically build and push the release to PyPi.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zfs_uploader-0.6.0.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for zfs_uploader-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41b0378f0d6c4433cd20144cfb8cc7072711f15b10e1902a48fb824d5ac08e4c |
|
MD5 | 1af342d3a274009412dc129bf2e5b499 |
|
BLAKE2b-256 | ac337be0a7d93eec422e4112f730011c534d44e4d4191904f8e7521748de3b18 |