frdel commited on
Commit
edb0fef
·
1 Parent(s): f3190dd

backup/restore merge

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