From 8c61f8001d8aebc2cd5d84bc26aae0e57b4c109e Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Fri, 22 Mar 2019 22:39:11 +1100 Subject: [PATCH] better usage text for tags --- bare.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/bare.sh b/bare.sh index 57135e0..56405a2 100755 --- a/bare.sh +++ b/bare.sh @@ -29,14 +29,24 @@ function log() { } function usage-repo() { - echo "Should be of this format:" echo " reponame1:/path/to/files1/:tag1,tag2,...,tagX" echo " reponame2:/path/to/files2/:tag1,tag2,...,tagX" echo " ..." echo " reponameX:/path/to/filesX/:tag1,tag2,...,tagX" + echo "" + echo "Backup method tags:" + echo " restic Backup using restic to Backblaze B2 bucket \$B2_BUCKET_PREFIX-" + echo " rclone Backup using rclone to Backblaze B2 bucket \$B2_BUCKET_PREFIX-" + echo " rsync Backup using rsync to \$RSYNC_USER@\$RSYNC_SERVER:\$RSYNC_DIR/." + echo "" + echo "Pre-backup commands to access local files:" + echo " nfs Mount \$NFS_SERVER:\$NFS_SERVER_BASE/ to " + echo " before running. Sharename determined by stripping \$NFS_PREFIX" + echo " from start of repo path." + echo " usmb Run 'usmb reponame' to mount \$USMB_PREFIX/ before running." + echo " Sharename determined by stripping \$NFS_PREFIX from start of ." } function usage-rc() { - echo "Should be of this format:" echo " export B2_ACCOUNT_ID=xxx" echo " export B2_ACCOUNT_KEY=xxx" echo " export B2_APP_ID=xxx"