From 31aaa8742bdf0055f59e9451184a5aea2d9f3579 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jan 2010 01:51:21 -0500 Subject: Realphabetize functions and heredoc --- squashfu | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'squashfu') diff --git a/squashfu b/squashfu index 4fad4a6..6ddf5bb 100755 --- a/squashfu +++ b/squashfu @@ -140,12 +140,6 @@ mount_union_branch_rw () { mount -o remount,mod:bins/$1=rw "${BKUP_ROOT}/rw" } -save_old_tree () { - # create new directory, and then set aside old seed -- yes, you can do this while its mounted - mkdir "${BKUP_ROOT}/last-week" - cd "$BKUP_ROOT" && mv {$SEED,bins/} "${BKUP_ROOT}/last-week" -} - print_usage () { # Do another sanity check -- check sizes of bins versus squash. total_bin_size=$(du -s ${BKUP_ROOT}/bins 2>/dev/null | awk '{print $1}') @@ -188,6 +182,12 @@ run_rsync() { rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} ${BKUP_ROOT}/rw } +save_old_tree () { + # create new directory, and then set aside old seed -- yes, you can do this while its mounted + mkdir "${BKUP_ROOT}/last-week" + cd "$BKUP_ROOT" && mv {$SEED,bins/} "${BKUP_ROOT}/last-week" +} + unmount_all () { am_i_root @@ -237,17 +237,17 @@ OPERATIONS Runs a regular backup, using the config file at /etc/squashfu, unless otherwise specified with the -c option. - -U - Displays the size of the seed, the incrementals, and the actual backup. If - you provide no additional options, a basic report will be given. Specifying - "full" will give more detail about individual bins. - -R [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. + -U + Displays the size of the seed, the incrementals, and the actual backup. If + you provide no additional options, a basic report will be given. Specifying + "full" will give more detail about individual bins. + -Z Use this option to restore sanity, AKA check for the seed or union being mounted and unmount them. Squashfu will ensure that everything is unmounted -- cgit v1.2.3