diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2014-04-08 18:41:52 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2014-04-08 18:41:52 +0200 |
| commit | cccb522b1edc12c56e20daa9630514438d124399 (patch) | |
| tree | c1a242ae9654fb412578e221923758a09d86596d | |
| parent | 27e0265c053389150e304b5cfbac2c4da34e80aa (diff) | |
| download | zfs-backup-cccb522b1edc12c56e20daa9630514438d124399.tar.gz zfs-backup-cccb522b1edc12c56e20daa9630514438d124399.tar.bz2 | |
zb-snap, readme
| -rw-r--r-- | README | 0 | ||||
| -rw-r--r-- | README.md | 11 | ||||
| -rwxr-xr-x | zb-snap | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a833c8 --- /dev/null +++ b/README.md @@ -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 @@ -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`" |
