Hi,

Does this method is still valid :
https://wiki.galaxyproject.org/Admin/Config/Performance/Purge%20Histories%20and%20Datasets
?


Here is what I used (not anymore; in a cron):


&<---------------------------------------------&<

#!/bin/bash

# purge galaxy datasets, histories, folders, libraires
# not updated since $day

day=$1

GALAXY_HOME="/home/galaxy/galaxyapp"

cd $GALAXY_HOME
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -1
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -2 -r
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -3 -r
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -5 -r
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -4 -r
/usr/bin/python scripts/cleanup_datasets/cleanup_datasets.py
universe_wsgi.ini -d $day -6 -r

#/usr/bin/find $GALAXY_HOME/tmp/ -mtime +30 -exec rm -rf "{}" \;
#/usr/bin/find $GALAXY_HOME/IOs/ -mtime +30 -exec rm -rf "{}" \;
#/usr/bin/find $GALAXY_HOME/job_working_directory/ -mtime +30 -exec rm -rf
"{}" \;

&<---------------------------------------------&<


Best,
Remy

2016-03-01 15:55 GMT+01:00 Nicola Soranzo <nsora...@tiscali.it>:

> You can use tmpwatch on RedHat/CentOS/Fedora or tmpreaper on Debian/Ubuntu.
>
> Cheers,
> Nicola
>
>
> On 01/03/16 14:30, Raphenya, Amogelang wrote:
>
> Is there a script that is used to clean up database/tmp
>
>
> *Amos Raphenya *
> *Bioinformatics Software Developer*
> *Department of Biochemistry & Biomedical Sciences*
> *McMaster University, MDCL **2317*
> *p: (905) 525-9140 **ext: **22787*
> *a: 1280 Main St W.,Hamilton, Ontario, Canada L8S 4K1*
> *e:   <raphe...@mcmaster.ca>raphe...@mcmaster.ca <raphe...@mcmaster.ca> *
> *skype: amos_raphenya*
>
> On Feb 29, 2016, at 10:21 AM, Björn Grüning < <bjoern.gruen...@gmail.com>
> bjoern.gruen...@gmail.com> wrote:
>
> Hi,
>
> if you are not overwriting this value with a object_store setting, it
> defaults to 'database/tmp' as written in galaxy.ini. The values are the
> default values which you see.
>
> Ciao,
> Bjoern
>
> Am 29.02.2016 um 16:19 schrieb Raphenya, Amogelang:
>
> Hi All,
>
> Where are the temporary files stored if the line below is commented out?
>
> |# Temporary files are stored in this directory. new_file_path =
> database/tmp|
>
>
> Thank you.
>
> /
> /
> /*Amos Raphenya* /
> /Bioinformatics Software Developer/
> /Department of Biochemistry & Biomedical Sciences/
> /McMaster University, MDCL //2317/
> /p: (905) 525-9140 //ext: //22787/
> /a: 1280 Main St W.,Hamilton, Ontario, Canada L8S 4K1/
> /e:  raphe...@mcmaster.ca <mailto:raphe...@mcmaster.ca
> <raphe...@mcmaster.ca>> /
> /skype: amos_raphenya/
>
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>  https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>  http://galaxyproject.org/search/mailinglists/
>
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>   https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/
>
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>   https://lists.galaxyproject.org/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/
>
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  https://lists.galaxyproject.org/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to