Skip to content

Instantly share code, notes, and snippets.

View gerard-kanters's full-sized avatar

Gerard Kanters gerard-kanters

View GitHub Profile
@gerard-kanters
gerard-kanters / rd-clean.sh
Last active December 12, 2016 15:50 — forked from imatpro/rd-clean.sh
Shell script to purge Rundeck execution history
#!/bin/sh
# keep last 6000 executions for each job, about 1 week if running minute jobs
KEEP=6000
cd /var/lib/rundeck/logs/rundeck
JOBS=`find . -maxdepth 3 -path "*/job/*" -type d`