better usage text for tags

This commit is contained in:
Rob Pearce 2019-03-22 22:39:11 +11:00
parent d49246a823
commit 8c61f8001d
1 changed files with 12 additions and 2 deletions

14
bare.sh
View File

@ -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-<reponame>"
echo " rclone Backup using rclone to Backblaze B2 bucket \$B2_BUCKET_PREFIX-<reponame>"
echo " rsync Backup using rsync to \$RSYNC_USER@\$RSYNC_SERVER:\$RSYNC_DIR/<reponame>."
echo ""
echo "Pre-backup commands to access local files:"
echo " nfs Mount \$NFS_SERVER:\$NFS_SERVER_BASE/<sharename> to <repopath>"
echo " before running. Sharename determined by stripping \$NFS_PREFIX"
echo " from start of repo path."
echo " usmb Run 'usmb reponame' to mount \$USMB_PREFIX/<sharename> before running."
echo " Sharename determined by stripping \$NFS_PREFIX from start of <repopath>."
}
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"