newdesignprestation/deploy_dev_preprod_prestataire.sh

19 lines
436 B
Bash
Executable File

#!/bin/bash
# Prestataire : De DEV vers PREPROD
SOURCE="/var/www/html/prestation/"
DEST="/var/www/html/preprestataire/"
EXCLUDES=(
"--exclude=assets/icons"
"--exclude=Config"
"--exclude=Temp"
"--exclude=Cron/prod.ini"
"--exclude=vendor"
"--exclude=Societes/ebene/Docs"
"--exclude=Societes/ebene/Ged"
"--exclude=Societes/ebene/images"
)
# Commande rsync
rsync -avz --delete "${EXCLUDES[@]}" "$SOURCE" "$DEST"