commit 2852c1512b5838fc21b211d9abdf4f906631b75b
parent b4aeecd6c3d39db03af9e6be4d602c2f988a9fb7
Author: dwrz <dwrz@dwrz.net>
Date: Thu, 4 Apr 2024 01:20:01 +0000
Update backup script
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/backup b/scripts/backup
@@ -38,7 +38,7 @@ backup-b2() {
# Config
if ! env "B2_APPLICATION_KEY_ID"="${id}" "B2_APPLICATION_KEY"="${key}" \
- b2 sync --delete --excludeDirRegex="Signal" \
+ bbb2 sync --delete --excludeDirRegex="Signal" \
"${HOME}/.config/" "b2://${bucket}/${HOSTNAME}/config";
then
err "$0: failed b2 'config' sync"
@@ -46,7 +46,7 @@ backup-b2() {
# Org
if ! env "B2_APPLICATION_KEY_ID"="${id}" "B2_APPLICATION_KEY"="${key}" \
- b2 sync --delete --excludeDirRegex="email" \
+ bbb2 sync --delete --excludeDirRegex="email" \
"${HOME}/org/" "b2://${bucket}/${HOSTNAME}/org";
then
err "$0: failed b2 'org' sync"
@@ -54,7 +54,7 @@ backup-b2() {
# Projects
if ! env "B2_APPLICATION_KEY_ID"="${id}" "B2_APPLICATION_KEY"="${key}" \
- b2 sync --delete "${HOME}/projects/" \
+ bbb2 sync --delete "${HOME}/projects/" \
"b2://${bucket}/${HOSTNAME}/projects";
then
err "$0: failed b2 'projects' sync"