diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-08 15:23:04 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-08 15:23:04 -0500 |
commit | 89ec485e3c47f131a5c39a95d7bfec02d1db9566 (patch) | |
tree | 9c9a48ee774727254b3bff3e6f37eb7feb39e10d | |
parent | d34a828c4fce8b7370a808e1bb8c8f77e2b1a16d (diff) | |
download | squashfu-89ec485e3c47f131a5c39a95d7bfec02d1db9566.tar.gz |
Flesh out heredoc for usage. Unfinished
-rwxr-xr-x | squashfu | 39 |
1 files changed, 37 insertions, 2 deletions
@@ -103,7 +103,39 @@ finish_routine () { } usage () { - info "This is what happens when you can't read" + info "SquashFu: a backup solution hewn out of boredom" + cat <<HELP +USAGE + squashfu <operation> [options] + +OPERATIONS + -B + Runs a regular backup, using the config file at /etc/squashfu, unless + otherwise specified with the -c option. + + -Q + Displays the size of the seed, the incrementals, and the actual backup. + + -R <day> [mount] + Rollback to the day described by the following argument. 'day' needs to be + a day of the week between the last resquash and the current day. An + alternate mount point can be specified for the resulting rolled back union. + If unspecified, the union will be mounted at $BKUP_ROOT/rw. + +OPTIONS + --resquash + To be used with the -B operation. This forces a new squashed seed to be + created when the backup finishes. The original seed and incrementals are + moved to the directory specified in the config file. Ensure that you have + sufficient space for this operation, or bad things will happen. You can + use the -Q operation to estimate how much free space you will need. + + --resquash-destroy-old + Similar to --resquash except the old seed and incrementals are discarded + after the new seed is created. + + +HELP exit } @@ -172,7 +204,10 @@ do-backup () { while [[ $# -gt 0 ]]; do case $1 in - "-c") ;; + "-B") do-backup ;; + "-c") ;; + "--resquash") ;; + "--check-size") ;; *) usage ;; esac shift |