
# rotate the stats.db.archive files for all repositories
/var/spool/cvmfs/*/stats.db.archive {
    monthly
    rotate 36
    missingok
    ifempty
    nocompress
    nomail
}

# vacuum the current stats db to stats.db.archive
/var/spool/cvmfs/*/stats.db {
    monthly
    rotate 0
    missingok
    ifempty
    copy
    nocompress
    nomail
    firstaction
        for db in /var/spool/cvmfs/*/stats.db; do
        if [ -f "$db" ]; then
        echo $db
        cvmfs_swissknife rotate-statsdb -p "$db"
        fi
        done
    endscript
}
