Skip to main content

Archives - Folder Size

Thread needs solution
Beginner
Posts: 2
Comments: 0

Hi!

We are working on an endpoint for validating the size of a folder before restoring. Currently we are using the following endpoint to retrieve the size (internal api):

 

/bc/api/ams/archives/%3CpatharchiveId%3E/backups/%3CpathbackupId%3E/items?backupId=ID&machineId=ID&maxRequestTimeout=600000&timeout=30&top=0&type=files

 

This does not give us the full, recursive size however. Example output from the api:

 

 'fullPath' => 'nvme0n1p1:/home/acronistest/acronistestcom/html',
 'size' => 24,

 

Expected size:

du -b /home/acronistest/acronistestcom/html | awk 'NR==1{print $1}'
93147

 

Is there another endpoint which includes the full size of folders, or would we have to find a solution for this ourselves?

 

Thanks! Also, please let me know who to contact with questions about the internal api. We have been contacting Stanislav previously, but it seems that his email address does not exist anymore.

0 Users found this helpful
Acronis engineer
Posts: 0
Comments: 58

Hello Malin,

I've sent you a private message as this request is about non-public API.

Thank you.