Mercurial > repos > ric > test1
annotate galaxy-tools/bin/clean_stuff.sh @ 12:46f08bb8dd68 draft default tip
Uploaded
| author | ric |
|---|---|
| date | Wed, 28 Sep 2016 04:59:02 -0400 |
| parents | 43be74e62bfe |
| children |
| rev | line source |
|---|---|
| 3 | 1 #!/bin/sh |
| 2 | |
| 3 GalaxyDir=/SHARE/USERFS/els7/users/sequencing/galaxy-dist | |
| 4 n_days=15 | |
| 5 | |
| 6 echo "Purging deleted galaxy entities older than ${n_days} days" | |
| 7 | |
| 8 cd "${GalaxyDir}" | |
| 9 | |
| 10 for i in 2 3 4 5 ; do | |
| 11 python scripts/cleanup_datasets/cleanup_datasets.py --days=${n_days} -${i} --remove_from_disk universe_wsgi.ini | |
| 12 done | |
| 13 | |
| 14 | |
| 15 echo "Done" | |
| 16 exit 0 |
