#!/bin/bash

localFolder='/mnt/d/Sites/Skinbase26/'
remoteFolder='/opt/www/virtual/SkinbaseNova/'
remoteServer='klevze@nastja.klevze.si'

rsync -avz \
      --chmod=D755,F644 \
      --exclude ".phpintel/" \
      --exclude "bootstrap/cache/" \
      --exclude ".env" \
      --exclude "public/hot" \
      --exclude "public/sitemap.xml" \
      --exclude "public/sitemaps/" \
      --exclude "node_modules" \
      --exclude "public/files/" \
      --exclude "resources/lang/" \
      --exclude "storage/" \
      --exclude ".git/" \
      --exclude ".cursor/" \
      --exclude ".venv/" \
      --exclude "/oldSite" \
      --exclude "/vendor" \
      -e ssh  \
      $localFolder \
      $remoteServer:$remoteFolder/
