From 168655fec6b8ba0ea9cda56c6aa5fbdaa6e3b593 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 18 Jan 2010 14:28:15 -0500 Subject: Add remove bin option to usage heredoc and options parser --- squashfu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/squashfu b/squashfu index e2811a6..eca789f 100755 --- a/squashfu +++ b/squashfu @@ -387,6 +387,10 @@ ACTIONS Create a new squash by merging old bins. This will still leave you with $MIN_BINS backups (as per the MIN_BINS setting in your config). + -D + Delete an incremental backup. This is done interactively and you will have + a chance to confirm before any files are deleted. + -Q Displays the size of the seed, the incrementals, and totals. @@ -410,12 +414,14 @@ HELP [[ -z $1 ]] && ( usage; exit 1; ) -while getopts :BCQR:Uc: opt; do +while getopts :BCD:QR:Uc: opt; do case $opt in B) action=backup ;; C) action=resquash_now ;; + D) + action="remove_bin $OPTARG" ;; Q) action=report ;; R) -- cgit v1.2.3