#!/bin/bash
rm /etc/network/shop1.sql
scp root@181.177.142.18:/etc/network/shop1.sql.gz /etc/network/
gzip -d /etc/network/shop1.sql.gz
mysql -u root -ptgXY7kN47uDUVpLqq2ra c0winandoffice < /etc/network/shop1.sql
rsync -azvh --delete --exclude 'wp-config.php' --exclude '.user.ini' --progress root@181.177.142.18:/var/www/shop.winandoffice.com/web/ /var/www/shop.winandoffice.com/web/
chown -R web2:client0 /var/www/shop.winandoffice.com/web/
chmod -R 755 /var/www/shop.winandoffice.com/web/

