This commit is contained in:
Rodolfo Berrios
2022-10-28 17:28:10 -03:00
parent e788574613
commit 9741b487ab
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ set -e
SOURCE=/var/www/chevereto/
TARGET=/var/www/html/
EXCLUDE="\.git|\.DS_Store|\.well-known|\.vscode|\/app\/vendor|\/app\/env\.php|\/app\/importer\/jobs"
[ -d "${SOURCE}"app/vendor/ ] && rsync --mkpath -a "${SOURCE}"app/vendor/ "${TARGET}"app/vendor
[ -d "${SOURCE}"app/vendor/ ] && rsync --mkpath -a "${SOURCE}"app/vendor/ "${TARGET}"app/vendor/
cp "${SOURCE}".gitignore "${TARGET}".gitignore
function sync() {
rsync -r -I -og \