diff --git a/debian/debian-create-backup-of-file.sh b/debian/debian-create-backup-of-file.sh new file mode 100644 index 0000000..af6c282 --- /dev/null +++ b/debian/debian-create-backup-of-file.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cat <<'EOF' >> /usr/local/bin/cpb +#!/bin/bash + +if [ $# -eq 1 ] +then + cp -pvi "$1" "${1}.bak" +else + echo "Info: $0 copies to a backup file" + echo "Usage: $0 " +fi +EOF + +chmod +x /usr/local/bin/cpb