Checking space requirements of backups per profile (System monitoring)
Separate summation for each profile, but also for directories under ./datawizard/backup that are not connected (after a profile has been deleted). The output is sorted by the largest backup volume (descending). No parameters.
Advantage: The connection between the backup directory and the assigned profile can be established.
Disadvantage: Parameterisation for subsets of files is not possible. The output always refers to the configured backup directory only. Note: See also section System Monitoring (checking size of one or more directories) (REST API).
Note: Cannot be used on a DMZ server because there are no profiles on a DMZ server.
Security configuration
Security configuration through optional file ./conf/dirsize/backupSize.config.
client.ip = regex:127\\..*;regex:192\\.168\\.21[367]\\..*;0:0:0:0:0:0:0:1
client.secure=false
Security configuration parameters
Name |
Description |
client.ip |
(optional) Access allowed from these IPs. Default: "localhost". |
client.secure |
(optional) "false" if HTTP is allowed. "true", if only HTTPS is allowed. Default: "true". |
Call example
http(s)://<IP/URL Integration Server>:<Port>/dw/monitor/v1/backupSize |
Example result XML
<
BACKUPSIZE
mbytes
=
"63"
>
<
DIRSIZE
>
<
PATH
>./datawizard/backup/43686b3b_1679e41adae_29db.3879adc4ee786aca_43686b3b_1679e41adae_-8000</
PATH
>
<
SUM_MBYTES
>43</
SUM_MBYTES
>
<
PROFILE
>PRICAT XML nach PRICAT CSV</
PROFILE
>
<
SubSum
>
<
Label
>all</
Label
>
<
younger
>true</
younger
>
<
time
>0</
time
>
<
bytes
>4.52621E7</
bytes
>
<
count
>3</
count
>
</
SubSum
>
</
DIRSIZE
>
</
BACKUPSIZE
>
There is a sequence of DIRSIZE elements under the BACKUPSIZE root element. The BACKUPSIZE root element has a mbytes attribute that sums the space required under the entire backup directory ./datawizard/backup.
Each DIRSIZE element describes a subdirectory of ./datawizard/backup that is usually associated with a profile. However, there are also subdirectories that are no longer assigned after the corresponding profile has been deleted.
Meaning of the elements under "DIRSIZE"
Element |
Description |
PATH |
The relative directory path under the Integration Server installation directory. |
SUM_MBYTES |
An approximate integer value for the megabytes under this directory. |
PROFILE |
The name of the assigned profile, or "NULL". |
SubSum |
The sum of bytes and the number of files under this directory. |
Label, younger, time |
Are compatible with the output of dirSize, but always have the same values here, indicating that all files under the directory younger than 1.1.1971 are considered (so practically all). |
bytes |
The sum of all byte lengths of the files under this directory and all its subdirectories. |
count |
The number of all files in this directory and all its subdirectories. |