This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ] |