Contexte
Vous souhaitez réaliser un nettoyage de sauvegarde obsolète sur votre serveur IBM Tivoli Storage Manager. Vous allez vérifier les points de sauvegardes et supprimer les anciens.
select 'del filespace ' || node_name || ' ' || cast(FILESPACE_ID as char(3)) || ' type=backup nametype=fsid wait=yes' AS COMMAND from filespaces where cast((current_timestamp-backup_end)days as decimal)>90 q occ select NODE_NAME, FILESPACE_NAME, BACKUP_DATE, TYPE, CLASS_NAME from backups where NODE_NAME like 'NAS1' and FILESPACE_NAME='/collections' order by BACKUP_DATE del filespace NAS1 25 type=backup nametype=fsid wait=yes
Leave a Reply