Simple backup-remove.sh
Simple script to keep given amount of example backup files and remove the rest: #!/bin/bash if [ “$3” == “” ]; then echo “Usage: backup-remove.sh <directory> <amount-of-backups-to-keep> <backup-file-prefix> [test]” exit 1 fi directory=”$1″ amount=”$2″ prefix=”$3″ testonly=”$4″ # set internal field… Continue Reading