Wikis - Page

Purge files on OES2 (cluster) server

0 Likes
This is a simple script that checks the mounted NSS volumes and purges all deleted files.

There is no need to change the script when a new volume is created or and old one is deleted.

Even in a clustered environment when a cluster-server has not always the same volumes mounted.

#!/bin/bash
Dirlist=$(dir /media/nss)
for direc in $Dirlist ; do
ncpcon purge volume $direc
done

Labels:

Collateral
How To-Best Practice
Comment List
Related
Recommended