Complete URBM product rename

This commit is contained in:
Mikei386
2026-06-14 23:12:39 +02:00
parent 145e04153e
commit 4e9b6a10f3
35 changed files with 253 additions and 181 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ import (
"strings"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"github.com/backupper-unraid/backupper/internal/service"
"git.casaderoll.de/michael/urbm/internal/model"
"git.casaderoll.de/michael/urbm/internal/service"
)
type Server struct {
+2 -2
View File
@@ -168,8 +168,8 @@ func DefaultConfig() Config {
Repositories: []Repository{},
Notifications: []NotificationTarget{{SchemaVersion: SchemaVersion, ID: "unraid", Name: "Unraid", Type: "unraid", Enabled: true, Events: []string{"success", "warning", "failed"}}},
Settings: Settings{
ResticPath: "/usr/local/libexec/backupper/restic",
RestoreRoot: "/mnt/user/backupper-restores",
ResticPath: "/usr/local/libexec/urbm/restic",
RestoreRoot: "/mnt/user/urbm-restores",
CatchUpWindowHrs: 24,
CheckCron: "0 3 1 * *",
PruneCron: "0 4 * * 0",
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"strings"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type SecretGetter interface{ Get(string) (string, error) }
@@ -39,7 +39,7 @@ func (s *Sender) Send(ctx context.Context, target model.NotificationTarget, titl
if path == "" {
path = "/usr/local/emhttp/webGui/scripts/notify"
}
args := []string{"-e", "URBM", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/Backupper"}
args := []string{"-e", "URBM", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/URBM"}
if s.RunCommand != nil {
return s.RunCommand(ctx, path, args...)
}
+2 -2
View File
@@ -9,7 +9,7 @@ import (
"strings"
"testing"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type testSecrets map[string]string
@@ -56,7 +56,7 @@ func TestSendUnraid(t *testing.T) {
if command != "/usr/local/emhttp/webGui/scripts/notify" {
t.Fatalf("unexpected command %q", command)
}
want := []string{"-e", "URBM", "-s", "Backup warning", "-d", "completed with warnings", "-i", "warning", "-l", "/Tools/Backupper"}
want := []string{"-e", "URBM", "-s", "Backup warning", "-d", "completed with warnings", "-i", "warning", "-l", "/Tools/URBM"}
if !reflect.DeepEqual(args, want) {
t.Fatalf("arguments = %#v, want %#v", args, want)
}
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type CredentialGetter interface{ Get(string) (string, error) }
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"strings"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type WorkloadManager struct{ RuntimeDir string }
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
func TestUpdateActiveIsVisibleWithoutPersistingIntermediateState(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
var ErrDuplicate = errors.New("task already queued or running")
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
func TestQueueDeduplicatesJobAndRunsTask(t *testing.T) {
+2 -2
View File
@@ -15,7 +15,7 @@ import (
"sync"
"syscall"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type SecretGetter interface{ Get(string) (string, error) }
@@ -97,7 +97,7 @@ func (r *Runner) Init(ctx context.Context, repo model.Repository) error {
func (r *Runner) Backup(ctx context.Context, repo model.Repository, job model.Job, sources []string, progress ProgressCallback) (Summary, error) {
args := []string{"backup", "--json", "--compression", job.Compression}
for _, tag := range append([]string{"backupper", "job:" + job.ID}, job.Tags...) {
for _, tag := range append([]string{"urbm", "job:" + job.ID}, job.Tags...) {
args = append(args, "--tag", tag)
}
for _, exclude := range job.Excludes {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type fakeSecrets map[string]string
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"sync"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type ConfigProvider func() model.Config
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
func TestNotificationMessageIncludesBackupStatistics(t *testing.T) {
+7 -7
View File
@@ -13,13 +13,13 @@ import (
"sync"
"time"
"github.com/backupper-unraid/backupper/internal/model"
"github.com/backupper-unraid/backupper/internal/notify"
"github.com/backupper-unraid/backupper/internal/platform"
"github.com/backupper-unraid/backupper/internal/queue"
"github.com/backupper-unraid/backupper/internal/restic"
"github.com/backupper-unraid/backupper/internal/scheduler"
"github.com/backupper-unraid/backupper/internal/store"
"git.casaderoll.de/michael/urbm/internal/model"
"git.casaderoll.de/michael/urbm/internal/notify"
"git.casaderoll.de/michael/urbm/internal/platform"
"git.casaderoll.de/michael/urbm/internal/queue"
"git.casaderoll.de/michael/urbm/internal/restic"
"git.casaderoll.de/michael/urbm/internal/scheduler"
"git.casaderoll.de/michael/urbm/internal/store"
)
type SecretStore interface {
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"path/filepath"
"sync"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
type Store struct {
@@ -90,7 +90,7 @@ func writeJSONAtomic(path string, value any, mode os.FileMode) error {
return err
}
b = append(b, '\n')
tmp, err := os.CreateTemp(filepath.Dir(path), ".backupper-*")
tmp, err := os.CreateTemp(filepath.Dir(path), ".urbm-*")
if err != nil {
return err
}
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/backupper-unraid/backupper/internal/model"
"git.casaderoll.de/michael/urbm/internal/model"
)
func TestStoreInitializesAndPersists(t *testing.T) {