Subversion Repositories sysadmin_scripts

Rev

Last modification | View Log | Download | RSS feed

Last modification

Path Last modification Log Download RSS

replication is a script which is designed to manage replicating two sets of

ZFS snapshots. There are tons of them out there, and this is pretty

simplistic, especially as compared to some of the more throurough ones like

repl, etc...

I wrote replication to handle a specific problem. I wanted an 'Air Gap'

server for backup. When the server was turned on, it would contact its

upstream server, sync, then shut down. The key to unlock the encrypted file

server is stored external to the Air Gap server and, if not found, the

server shuts itself off immediately.

The script to do that is included (sync) showing how to call replication.

sync requires a configuration file, sync.yaml. There is a sample (with

comments) included (sync.sample.yaml).