Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shirkdog/zfsbackup
Simple backup scripts to manage ZFS snapshots for filesystem backups.
https://github.com/shirkdog/zfsbackup
Last synced: 2 months ago
JSON representation
Simple backup scripts to manage ZFS snapshots for filesystem backups.
- Host: GitHub
- URL: https://github.com/shirkdog/zfsbackup
- Owner: shirkdog
- License: bsd-2-clause
- Created: 2014-07-31T20:18:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T01:20:45.000Z (over 3 years ago)
- Last Synced: 2023-03-30T11:59:16.121Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
zfsbackup
=========This is a collection of scripts that simplify the management of ZFS snapshots for filesystem backups.
*zfsbackup.sh
-------------This script will maintain an incremental zfs snapshot that is mirrored on a remote system (today/yesterday).
The script assumes the dataset exists on the remote system, and the steps are documented on how to setup
this functionality if the remote dataset is missing.*zfscron.sh
-----------This script is designed to be run every half hour, and maintains a snapshot for the previous hour.
To setup this script, add the following to the user's cronjob with permissions to perform snapshots`*/30 * * * * /usr/home/test/zfscron.sh`
Note:
----
These scripts should be used by a non-root user setup and configured to create/destroy snapshots.
The following will setup the necessary permissions for the zfs-user to manage snapshots for zroot:`zfs allow -du zfs-user create,compression,destroy,snapshot,snapdir,hold,mount,mountpoint,send,rename,receive,quota,refquota zroot`