zb-snap, readme

This commit is contained in:
Mirek Kratochvil 2014-04-08 18:41:52 +02:00
parent 27e0265c05
commit cccb522b1e
3 changed files with 17 additions and 0 deletions

0
README
View file

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# ZFS-Backup
The zfs backing-up tool. ha-ha.
## Tools:
- `zb-snap <volume>` creates a snapshot
- `zb-cleanup <volume> <density>` destroys unnecessary snapshots
- `zb-pull <volume> <remote_volume> <ssh_options>` pulls most recent snapshot of `remote_volume` to `volume`, using ssh called with `ssh_options`
- `zb-cron` reads configuration from `/etc/zfs-backup.conf` and executes above 3 commands with config-specified parameters

View file

@ -1,2 +1,8 @@
#!/bin/sh
if [ -z "$1" ] ; then
echo "usage: $0 <zfs_volume>" >&2
exit 1
fi
exec zfs snapshot "${1}@zb-`date '+%F %T %z' |tr + p`"