mirror of
https://github.com/penpot/penpot.git
synced 2025-05-04 01:15:53 +02:00
16 lines
355 B
Bash
16 lines
355 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ "$#" -ne 0 ]; then
|
|
echo "Expecting parameters: 1=path to backend; 2=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;
|