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