]> git.treefish.org Git - backmeupscotty.git/commitdiff
Fix remote user
authorAlexander Schmidt <alex@treefish.org>
Mon, 26 Feb 2024 20:17:50 +0000 (21:17 +0100)
committerAlexander Schmidt <alex@treefish.org>
Mon, 26 Feb 2024 20:17:50 +0000 (21:17 +0100)
backmeupscotty

index 87dc1933ae0060734df6cc31ab154ddf0ab2c297..9d8853dc6643d9aa603a7ae8365e2ac284858933 100644 (file)
@@ -37,7 +37,7 @@ function scottyerror {
 }
 
 function ssh255 {
-    ssh $@
+    ssh -l $REMOTE_USER $@
     sshret=$?
 
     if [ $sshret -eq 255 ]; then
@@ -123,11 +123,11 @@ function scottysync {
     fi
 
     scottyinfo "Starting rsync."
-    rsync -e ssh --bwlimit=$BWLIMIT \
+    rsync -e "ssh -l $REMOTE_USER" --bwlimit=$BWLIMIT \
           -v -aHAX --numeric-ids --delete --delete-excluded \
           --link-dest=$dir_current \
           $rsync_exclude $rsync_fake_super \
-          $SYNC_SRC/ $REMOTE_USER@$REMOTE_HOST:$dir_incomplete/
+          $SYNC_SRC/ $REMOTE_HOST:$dir_incomplete/
 
     if [ $? -eq 0 ]; then
         scottyinfo "Timestamping completed backup and linking to current backup."