mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
16 lines
357 B
Bash
16 lines
357 B
Bash
#!/usr/bin/env bash
|
|
if [ ! -d "$1" ] || [ ! -d "$2" ]; then
|
|
echo "Expecting path to backend and destination directory"
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf $2 || exit 1;
|
|
|
|
rsync -avr \
|
|
--exclude="/test" \
|
|
--exclude="/resources/public/media" \
|
|
--exclude="/target" \
|
|
--exclude="/scripts" \
|
|
--exclude="/.*" \
|
|
$1 $2;
|