From 325fcdfe7372f09707f0f81a2ee81e9a75453ea8 Mon Sep 17 00:00:00 2001 From: Simon Lipp Date: Thu, 25 Jan 2024 20:13:58 +0100 Subject: [PATCH] fix: btrfs destination: default receive command [minor] --- destinations/btrfs.go | 2 +- sources/btrfs.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/destinations/btrfs.go b/destinations/btrfs.go index d652c80..67cbe83 100644 --- a/destinations/btrfs.go +++ b/destinations/btrfs.go @@ -45,7 +45,7 @@ func newBtrfsDestination(options *uback.Options) (uback.Destination, error) { basePath: basePath, snapshotCommand: options.GetCommand("SnapshotCommand", []string{"btrfs", "subvolume", "snapshot"}), sendCommand: options.GetCommand("SendCommand", []string{"btrfs", "send"}), - receiveCommand: options.GetCommand("ReceiveCommand", []string{"btrfs", "subvolume", "receive"}), + receiveCommand: options.GetCommand("ReceiveCommand", []string{"btrfs", "receive"}), deleteCommand: options.GetCommand("DeleteCommand", []string{"btrfs", "subvolume", "delete"}), }, nil } diff --git a/sources/btrfs.go b/sources/btrfs.go index 1d5ace2..6f940b7 100644 --- a/sources/btrfs.go +++ b/sources/btrfs.go @@ -138,7 +138,6 @@ func (s *btrfsSource) CreateBackup(baseSnapshot *uback.Snapshot) (uback.Backup, } } - if s.snapshotsPath == "" { baseSnapshot = nil }