mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
8c21aac16e
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
16 lines
334 B
Bash
Executable file
16 lines
334 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ "$#" -e 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;
|