File: cron.weekly

package info (click to toggle)
bsmtpd 2.3pl8b-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 228 kB
  • ctags: 241
  • sloc: ansic: 2,008; makefile: 180; sh: 24
file content (10 lines) | stat: -rw-r--r-- 165 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh

BAK=/var/spool/bsmtp/bak

#
# Remove 28 days old backup files:
#
if [ -d $BAK ] ; then
    find $BAK -mtime +28 -type f -exec rm -f {} \; > /dev/null
fi