https://github.com/jameslikeslinux/zfssnap
zfssnap Home Directory
https://github.com/jameslikeslinux/zfssnap
Last synced: about 1 month ago
JSON representation
zfssnap Home Directory
- Host: GitHub
- URL: https://github.com/jameslikeslinux/zfssnap
- Owner: jameslikeslinux
- Created: 2014-02-19T19:58:30.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T06:40:45.000Z (over 8 years ago)
- Last Synced: 2025-02-13T15:41:28.587Z (3 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zfssnap
Tools for performing automatic snapshots and remote incremental backups.Instructions for my reference:
## Initial Backup
1. On the destination host, create a place to send the backup to:# zfs create nest/backup/nodes/
1. On the source host, perform an initial backup:1. Find the latest daily snapshot:
# zfs list -H -o name -t snapshot | grep rpool@zfs-auto-snap_daily | tail -1
1. Perform a full backup:
# zfs send -R | ssh root@hawk zfs receive -vdFu nest/backup/nodes/1. On the destination host, unset some received properties:
# zfs inherit -r mountpoint nest/backup/nodes/
# zfs inherit -r com.sun:auto-snapshot nest/backup/nodes/## New Dataset
If you create a new dataset, it may be out-of-sync with the existing incremental backups and you will get an error message like:cannot receive incremental stream: destination 'nest/backup/nodes//' does not exist
In this case, perform a full replication of the new dataset to bring it in line with the incremental stream.
1. On the source host, determine the newest remote snapshot:
# sudo -u zfssnap -s
% zfs-backup -vn
...
newest remote snapshot: zfs-auto-snap_frequent-2015-06-03-1200
...1. Perform the full replication of the new dataset:
# zfs send -R @ | ssh root@hawk zfs receive -vdFu nest/backup/nodes/
1. On the destination host, unset some received properties:
# zfs inherit -r mountpoint nest/backup/nodes/
# zfs inherit -r com.sun:auto-snapshot nest/backup/nodes/