AA-2485: Changes for scheduled backup for external storage

Review Request #802 — Created April 16, 2025 and submitted

apoorva.sn
AMP
amp_3_7
AA-2485
pmurugaiyan, prajesh, shuinvy

Problem

For scheduled backup had to support backup on external storage.

Solution

Made changes to support backup on external storage for scheduled backup
Also fixed one small issue w.r.t to show backup status
Also a small fix on backup file list to show if the backup was done locally or on remote

Tested that the scheduled backup is succcessful both on local and remote storage

POST https://192.168.162.162:8888/backup/schedule

{
"backup_target": "remote",
"frequency": "daily",
"time": "13:45"
}

Response:
{
"cron_time": "45 13 * ",
"message": "Backup schedule updated successfully!"
}

Tested to check the backup list is showing the backup destination correctly

GET https://192.168.162.162:8888/backup/files

Response:

[
{
"status": "Completed",
"destination": "local",
"time": "2025-04-16T15:09:09.714491",
"filename": "backup_20250416_150909.tar.gz"
},
{
"status": "Completed",
"destination": "remote",
"time": "2025-04-16T15:09:54.691911",
"filename": "backup_20250416_150954.tar.gz"
}
]

shuinvy
  1. Ship It!
  2. 
      
apoorva.sn
pmurugaiyan
  1. Ship It!
  2. 
      
apoorva.sn
prajesh
  1. Ship It!
  2. 
      
pmurugaiyan
  1. Ship It!
  2. 
      
apoorva.sn
Review request changed

Status: Closed (submitted)

Loading...