utils/syncrepo.sh
changeset 2 e8ebdcd8bcd0
child 4 946a11dbdb23
equal deleted inserted replaced
1:c42d991ddcdb 2:e8ebdcd8bcd0
       
     1 #!/bin/bash
       
     2 # Sync local Arch Linux repository with remote server
       
     3 #-------------------------------------------------------------------------------
       
     4 
       
     5 #-------------------------------------------------------------------------------
       
     6 # Settings
       
     7 #-------------------------------------------------------------------------------
       
     8 USER=anders
       
     9 SERVER=andersman.org
       
    10 HTDOCS=/srv/hg/happymars/htdocs
       
    11 #-------------------------------------------------------------------------------
       
    12 
       
    13 rsync -zrptL -e ssh ../htdocs/i686/ $USER@$SERVER:$HTDOCS/i686/
       
    14 echo "Finished syncing i686"
       
    15 rsync -zrptL -e ssh ../htdocs/x86_64/ $USER@$SERVER:$HTDOCS/x86_64/
       
    16 echo "Finished syncing x86_64"