## -> do backup of ~dps on cherokee (includes dirs to_be_deleted*) once a month:
## 
## Steps to cleanup ~dps/to_be_deleted:
## ====================================

rlogin cherokee
su -
/backup_dps.cherokee >&! /usr/people/gaeng/backup/Backup-Infos.`date '+%y%m%d'` &
## or use CHEYENNE's DAT drive via nfs:
## or use rlogin cheyenne
## or use su -
## or use /backup_dps.cheyenne >&! /usr/people/gaeng/backup/Backup-Infos.`date '+%y%m%d'` &


## -> do cleanup (delete old TRACE* files in~dps/to_be_deleted) once a month 
##    (ie after backup of ~dps) and leave 3-4 weeks worth of data on disk

## Steps to cleanup ~dps/to_be_deleted:  
## ====================================
## => example of Jun98-cleanup (ie replace "Jun98" with the month you want top clean up)

rlogin cherokee
su - trace
cd ~dps/to_be_deleted
ls -CFlt Cleanup_dps*
#ls -l | grep " Jun " | grep "TRACE" | awk '{print $5,$6,$7,$8,$9}' > Cleanup_dps.dummy
ls -l | grep " Jun " | grep "TRACE" | cut -c35-100 > Cleanup_dps.dummy
## check/edit Cleanup_dps.dummy to make sure it contains only files you want to delete:
less Cleanup_dps.dummy
## 
awk '{print $5}' Cleanup_dps.dummy | sed -e 's/^/rm /' > Cleanup_dps.Jun98
## check if number of lines are equal:
wc -l Cleanup_dps.dummy Cleanup_dps.Jun98
## make Cleanup_dps.Jun98 executable and carry out cleanup:
## (creating of Cleanup_dps.Jun98 file will let you check what you did)
chmod +x Cleanup_dps.Jun98 ; ./Cleanup_dps.Jun98
## change owner to trace.trace:
chown trace.trace Cleanup_dps.Jun98

