haas:scripts:prune
Table of Contents
prune.sh
Objective
Perform maintenance on backups (remove excessively old copies to save disk space).
TODO
look into being able to merge the nfs and sokraits/halfadder versions of the scriptthey look to be pretty much cut from the same cloth, verify this.- do some simple error checking (just in case)
Prerequisites
In order to use prune.sh, the following conditions need to be met:
- run as root (or superuser privileges)
- run on the primary fileserver, or either VM Server peer
Usage
To use prune.sh, run it with the appropriate data element as an argument to check:
sokraits:~$ sudo /export/backup/prune.sh username
Preferred deployment is through the script that creates the backup files (so it cleans up as it goes along).
Script
- 1
extern> http://lab46.corning-cc.edu/haas/content/scripts/prune
haas/scripts/prune.txt · Last modified: 2011/06/20 09:41 by 127.0.0.1