backup-strategy.sh 377 B

12345678910111213141516
  1. #! /bin/sh
  2. # This script will rely on the following scripts:
  3. # fullftpdump
  4. # Get the day of the month we are in
  5. day=`date +%d | sed 's/^0//'`
  6. # All dump levels for a full month with 31 days
  7. set -A levels = 0 3 2 5 4 7 3 2 5 4 6 3 2 5 4 9 3 2 5 4 7 6 8 3 2 5 4 7 6 9 8
  8. # Get the level
  9. let level=${levels[day]}
  10. echo "Using dump level $level"
  11. /root/bin/fullftpdump -l $level