rsync -vr --delete-after /var/www/ /nids/var/www/
rsync -vr --delete-after /opt/nids/ /nids/opt/nids/
mysqldump -d -h localhost -u root -pphbmpd2wyh nids > /nids/nids.sql
rm /nids/etc/suricata/rules/all.rules
cd /nids
git add .
git commit -a -m "$1"
git push -u origin master
cd /
mv /nids/.git /tmp/tmpgit
dpkg-deb -z8 -Z gzip -b /nids /nids.deb
mv /tmp/tmpgit /nids/.git
rsync -arv /nids.deb root@connectoo.fr:/var/www/virtual/maj.connectoo.fr/htdocs/debian/incoming/
ssh root@connectoo.fr "cd /var/www/virtual/maj.connectoo.fr/htdocs/debian && reprepro remove wheezy nids && reprepro includedeb wheezy incoming/nids.deb"


