class Restic::Service::Targets::ResticB2
A target that backs up to a SFTP target using Restic
See README.md for the YAML configuration file format
Public Class Methods
normalize_yaml(yaml)
click to toggle source
Calls superclass method
Restic::Service::Targets::B2::normalize_yaml
# File lib/restic/service/targets/restic_b2.rb, line 10 def self.normalize_yaml(yaml) yaml = B2.normalize_yaml(yaml) super(yaml) end
Public Instance Methods
forget()
click to toggle source
# File lib/restic/service/targets/restic_b2.rb, line 20 def forget run_forget(Hash['B2_ACCOUNT_ID' => @id, 'B2_ACCOUNT_KEY' => @key], '-r', "b2:#{@bucket}:#{@path}", 'forget') end
restic(*args)
click to toggle source
# File lib/restic/service/targets/restic_b2.rb, line 25 def restic(*args) run_restic(Hash['B2_ACCOUNT_ID' => @id, 'B2_ACCOUNT_KEY' => @key], '-r', "b2:#{@bucket}:#{@path}", *args) end
run()
click to toggle source
# File lib/restic/service/targets/restic_b2.rb, line 15 def run run_backup(Hash['B2_ACCOUNT_ID' => @id, 'B2_ACCOUNT_KEY' => @key], '-r', "b2:#{@bucket}:#{@path}", 'backup') end