Makefile: test
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// Package jobs provides definitions and features for Backup Jobs themselves.
|
||||
// [BackupJob] is the primary resource here.
|
||||
// [BackupJob.Do] is the main entrypoint for running through the backup process.
|
||||
package jobs
|
||||
|
||||
import (
|
||||
@@ -94,7 +97,13 @@ func (j *BackupJob) Snapshot(ctx context.Context) (string, error) {
|
||||
}
|
||||
|
||||
func (j *BackupJob) FullSend(ctx context.Context, snap string) {
|
||||
out, err := zfs.Cmd(ctx, "zfs send -Lec %s | ssh %s zfs recv -Fu %s", snap, j.TargetHost, j.Target)
|
||||
out, err := zfs.Cmd(
|
||||
ctx,
|
||||
"zfs send -Lec %s | ssh %s zfs recv -Fu %s",
|
||||
snap,
|
||||
j.TargetHost,
|
||||
j.Target,
|
||||
)
|
||||
if err != nil {
|
||||
log.Fatalf("zfs-send: error: %s", out)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user