wip
continuous-integration/drone/push Build is failing Details

This commit is contained in:
IamTheFij 2024-01-05 16:54:58 -08:00
parent a2823e09ad
commit ceb8421a7b
1 changed files with 16 additions and 0 deletions

View File

@ -72,6 +72,16 @@ func (NoOpts) ToArgs() []string {
return []string{}
}
type UnlockOps struckt {
RemoveAll bool `hcl:"RemoveAll,optional"`
}
func (uo UnlockOpts) ToArgs() (args []string) {
args = maybeAddArgBool(args, "--remove-all", uo.RemoveAll
return
}
type BackupOpts struct {
Exclude []string `hcl:"Exclude,optional"`
Include []string `hcl:"Include,optional"`
@ -331,6 +341,12 @@ func (rcmd Restic) Check() error {
return err
}
func (rcmd Restic) Unlock(unlockOpts UnlockOpts) error {
_, err := rcmd.RunRestic("unlock", unlockOpts)
return err
}
type Snapshot struct {
UID int `json:"uid"`
GID int `json:"gid"`