aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-09 01:51:21 -0500
committerDave Reisner <d@falconindy.com>2010-01-09 01:51:21 -0500
commit31aaa8742bdf0055f59e9451184a5aea2d9f3579 (patch)
tree22af5db7aeb0f35aa3f71490597280a41a1fea58 /squashfu
parent711db669fc62f8ff8a7e99c7be6c2e8a80068082 (diff)
downloadsquashfu-31aaa8742bdf0055f59e9451184a5aea2d9f3579.tar.gz
Realphabetize functions and heredoc
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu22
1 files changed, 11 insertions, 11 deletions
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 <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.
+ -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