Skip to content

Commit 8c7b98b

Browse files
authored
Merge pull request #48 from jcalonso/master
Allow B2sync only
2 parents f4bc212 + 35a4600 commit 8c7b98b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

auto-gitlab-backup.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ rvm_ENV() {
5858
# rvm env --path -- ruby-version[@gemset-name]
5959
if [[ "$RVM_envPath" != "" ]]
6060
then
61-
echo "Using RVM environemnt file:"
61+
echo "Using RVM environment file:"
6262
echo $RVM_envPath
6363
source $RVM_envPath
6464
fi
@@ -240,7 +240,7 @@ areWeRoot() {
240240
echo "You must run this script as root to run."
241241
if [[ $1 == -d ]] || [[ $1 == --dry-run ]]
242242
then
243-
echo "...even to dryrun as we need to acccess the backup dir."
243+
echo "...even to dryrun as we need to access the backup dir."
244244
fi
245245
usage
246246
exit 1
@@ -422,7 +422,7 @@ case $1 in
422422
sshQuotaKey
423423
else if [[ $remoteServer != "" ]]
424424
then
425-
# use the defualt
425+
# use the default
426426
rsyncUp_dryrun
427427
b2SyncProgress
428428
sshQuota
@@ -453,10 +453,15 @@ case $1 in
453453
sshQuotaKey
454454
else if [[ $remoteServer != "" ]]
455455
then
456-
# use the defualt
456+
# use the default
457457
rsyncUp
458458
b2Sync
459459
sshQuota
460+
else if [[ $b2blaze == "1" ]]
461+
then
462+
# use b2Sync only
463+
b2Sync
464+
fi
460465
fi
461466
fi
462467
fi

0 commit comments

Comments
 (0)