Sha256: 782ea3c6d4cf88ba1b4bfc63d138d2d7b838d1e683ef7ad684fd3a63ede162ba
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
#!/bin/env ruby # frozen_string_literal: true require "rustic" Rustic.define do repository "tmp/repository" password "password" before do logger.info(self, "BEFORE") end backup do one_fs! before do |exists| logger.info(self, "BEFORE BACKUP #{exists}") end after do logger.info(self, "AFTER BACKUP") end backup "lib" exclude "lib/rustic" end after do logger.info(self, "AFTER") end on_error do |error| logger.warn(self, "ERROR:", error) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rustic-0.3.0 | rustic.rb |