Cool Solutions

Purge files on OES2 (cluster) server



By:

November 3, 2011 10:42 am

Reads: 4466

Comments:0

License:
None

Download purge

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
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS