Professional Documents
Culture Documents
/*
[NAME]
- HANA_Backups_CatalogDeletion_CommandGenerator
[DESCRIPTION]
[SOURCE]
[VALID FOR]
- Revisions: all
- Statistics server type: all
[INVOLVED TABLES]
- M_BACKUP_CATALOG
[INPUT PARAMETERS]
- MIN_RETAINED_BACKUPS
Minimum number of retained backups (i.e. backup catalog entries are only deleted
if they are older than
the defined number of most recent data backups)
5 --> Only delete backup catalog entries older than the 5 most
recent data backups
-1 --> No restriction related to existing data backups
- MIN_RETENTION_DAYS
Minimum threshold of retention days (i.e. backup catalog entries are only deleted
if they are older than
the defined number of retention days)
42 --> Only delete backup catalog entries if they are older than 42
days
-1 --> No restriction related to retention days
- COMMAND_OPTIONS
'WITH BACKINT' --> Removes backups from catalog and from BACKINT backup tool
'WITH FILE' --> Removes file-based backups from catalog and original location
'COMPLETE' --> Removes backups from catalog and file system / BACKINT
'' --> No additional command option
[OUTPUT PARAMETERS]
[EXAMPLE OUTPUT]
-----------------------------------------------------------------------------------
---------------------------------------------------
|MIN_RETAINED_BACKUPS|MIN_RETENTION_DAYS|BACKUP_ID |BACKUP_TIME |
COMMAND |
-----------------------------------------------------------------------------------
---------------------------------------------------
| 5| 42| 1434135602464|2015/06/12 21:00:02|BACKUP
CATALOG DELETE ALL BEFORE BACKUP_ID 1434135602464|
-----------------------------------------------------------------------------------
---------------------------------------------------
*/