From f44f4db3e18440d15c5513e10e9f63318d9bfb78 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 24 Sep 2018 17:44:06 -0400 Subject: [PATCH] Change to correct directory for backup --- backup-android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup-android.sh b/backup-android.sh index a49e2e4..f76afbe 100755 --- a/backup-android.sh +++ b/backup-android.sh @@ -44,7 +44,7 @@ function backup() { # Next, instruct the host to create a borg echo "Running borg..." - ./run_remote.sh nohup sh -c "cd \"$DESTINATION_LOCATION\"; $BORG_COMMAND \"$BORG_REPO::$HOSTNAME-$(uuidgen)\" ." || return 2 + ./run_remote.sh cd "$DESTINATION_LOCATION" "&&" pwd "&&" $BORG_COMMAND "$BORG_REPO::$LOCAL_HOSTNAME-$(uuidgen)" . || return 2 } # Take wakelock so we don't fall asleep