Mercurial > repos > ric > test1
diff galaxy-tools/bin/clean_stuff.sh @ 3:43be74e62bfe draft
Uploaded
| author | ric |
|---|---|
| date | Thu, 22 Sep 2016 08:57:04 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/galaxy-tools/bin/clean_stuff.sh Thu Sep 22 08:57:04 2016 -0400 @@ -0,0 +1,16 @@ +#!/bin/sh + +GalaxyDir=/SHARE/USERFS/els7/users/sequencing/galaxy-dist +n_days=15 + +echo "Purging deleted galaxy entities older than ${n_days} days" + +cd "${GalaxyDir}" + +for i in 2 3 4 5 ; do + python scripts/cleanup_datasets/cleanup_datasets.py --days=${n_days} -${i} --remove_from_disk universe_wsgi.ini +done + + +echo "Done" +exit 0
