#!/bin/sh # # Make backup copies of a specified file ( arg. 1 ). A second argument, # is optional and specifies that you want to keep .0 through . # as backups. If no number is given then the default, 6, will be used. # # - wheelan # # Heavily Modified by lucb for compression and presentation. Backwards # compatible to Bill's version # usage () { cat < $1 chmod $perm $1 && debug "chmod $perm $1" if [ x${compression:-} = xn ] ; then debug "No compression requested"; elif [ x${compression:-} = xy ] ; then gzip $dst && debug "gzip $dst (explicitely)" ; else case "$compress" in "none") debug "No compression";; "compress") compress $dst && debug "compress $dst" ;; "gzip") gzip $dst && debug "gzip $dst" ;; esac fi