[cfarm-users] Please cleanup your /home on farm machines

CM Graff cm0graff at gmail.com
Thu Jan 18 18:37:51 CET 2018


For those of you like myself who don't have any important data stored
on the build machines, I used a fairly crude script to finally clean
out all of my work. Even on machines that I may have forgotten that I
used:

#!/bin/sh
if [ $# = 0 ]
then    COUNT=20
else    COUNT=$1
fi
USERNAME=cgraff1

while [ "$COUNT" -lt 130 ]
do      printf "%s\n" "attempting to clean
${USERNAME}@gcc${COUNT}.fsffrance.org"
        ssh "${USERNAME}@gcc${COUNT}.fsffrance.org" -f 'rm -rf *'
        COUNT=$((COUNT + 1))
done

On 1/18/18, Bart Van Assche via cfarm-users
<cfarm-users at lists.tetaneutral.net> wrote:
> On 01/18/18 03:17, Baptiste Jonglez via cfarm-users wrote:
>> Please check each of these machines: if you have unused data in your home
>> directory, it should be deleted!
>
> Hello Baptiste,
>
> How about /tmp? There are several systems in the cluster with thousands
> of files in /tmp. How about installing a cron job that e.g. removes all
> files and directories from /tmp that are older than one week? This is
> the shell command I use on my own systems to remove files from /tmp that
> are older than one day:
>
> find "${1:-/tmp}" -maxdepth 1 ! -mtime 0 -ls -exec rm -rf {} \;
>
> Bart.
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>


More information about the cfarm-users mailing list