backup/restore merge

frdel committed Jun 24, 2025 at 22:18 UTC d29081e15e38e0b48aff7df5b885c09e346c4e3f
2 files changed +6 -6
python/helpers/backup.py
+1 -1
@@ -70,7 +70,7 @@ class BackupService:
70
71 # Memory (excluding embeddings cache)
72 {agent_root}/memory/**
73 -!{agent_root}/memory/embeddings/**
73 +!{agent_root}/memory/**/embeddings/**
74
75 # Configuration and Settings (CRITICAL)
76 {agent_root}/.env
webui/components/settings/backup/backup-store.js
+5 -5
@@ -397,7 +397,7 @@ const model = {
397 const metadata = this.backupMetadataConfig;
398
399 // Use fetch directly since backup_create returns a file download, not JSON
400 - const response = await fetch('/backup_create', {
400 + const response = await fetchApi('/backup_create', {
401 method: 'POST',
402 headers: { 'Content-Type': 'application/json' },
403 body: JSON.stringify({
@@ -442,7 +442,7 @@ const model = {
442
443 async downloadBackup(backupPath, backupName) {
444 try {
445 - const response = await fetch('/backup_download', {
445 + const response = await fetchApi('/backup_download', {
446 method: 'POST',
447 headers: { 'Content-Type': 'application/json' },
448 body: JSON.stringify({ backup_path: backupPath })
@@ -548,7 +548,7 @@ const model = {
548 formData.append('overwrite_policy', this.overwritePolicy);
549 formData.append('clean_before_restore', this.cleanBeforeRestore);
550
551 - const response = await fetch('/backup_restore_preview', {
551 + const response = await fetchApi('/backup_restore_preview', {
552 method: 'POST',
553 body: formData
554 });
@@ -615,7 +615,7 @@ const model = {
615 const formData = new FormData();
616 formData.append('backup_file', file);
617
618 - const response = await fetch('/backup_inspect', {
618 + const response = await fetchApi('/backup_inspect', {
619 method: 'POST',
620 body: formData
621 });
@@ -700,7 +700,7 @@ const model = {
700 formData.append('overwrite_policy', this.overwritePolicy);
701 formData.append('clean_before_restore', this.cleanBeforeRestore);
702
703 - const response = await fetch('/backup_restore', {
703 + const response = await fetchApi('/backup_restore', {
704 method: 'POST',
705 body: formData
706 });