Skip to content

Instantly share code, notes, and snippets.

@dirkmb
dirkmb / ZYNK
Last active August 29, 2015 13:56
#!/bin/bash
## ZYNK: The Zuper Zimple ZFS Sync (Replication) Tool
## Form: zynk local/dataset root@remote.host destination/dataset
# Please note: The reason this is so simple is because there is no error checking, reporting, or cleanup.
# In the event that something goes wonkey, you'll manually need to fix the snapshots and
# Furthermore, this absolutely relies on the GNU version of 'date' in order to get epoch time
# Before using, make sure you've distributed your SSH key to the remote host and can ssh without password.
if [ ! $2 ]