logrotate.sh 94 B

1234567891011
  1. #!/bin/bash
  2. _FILE=$1
  3. _DATE=$(date +%s)
  4. gzip -f $_FILE &&
  5. mv $_FILE.gz $_FILE.$_DATE.gz