Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (12 sloc) 293 Bytes
#!/bin/bash
# we gzip up all files so that they are smaller
rm -Rf www_gzip/
rsync -a --progress www/ www_gzip/
gzip -9fr www_gzip/
FILES=`find www_gzip`
for FILE in $FILES; do
NEW_FILE=${FILE/.gz/}
if [ "${FILE}" != "${NEW_FILE}" ]; then
mv ${FILE} ${NEW_FILE}
fi;
done;