From 1004770f04628a1d35407b66537888685b83cffc Mon Sep 17 00:00:00 2001 From: Juan Date: Thu, 16 Aug 2018 08:43:11 +0200 Subject: [PATCH] Rescheduling, deployment --- debian/cron.d | 12 ++++++------ deploy | 5 +++++ deploy.sh | 12 ------------ 3 files changed, 11 insertions(+), 18 deletions(-) create mode 100755 deploy delete mode 100755 deploy.sh diff --git a/debian/cron.d b/debian/cron.d index 7d5361e..9825c3f 100755 --- a/debian/cron.d +++ b/debian/cron.d @@ -3,10 +3,10 @@ MAILFROM="bacula@verdnatura.es" MAILTO="sysadmin@verdnatura.es" -00 03 * * tue-fri root vn-vmware.pl --operation clone-job --job testDb -00 02 01 * * root vn-vmware.pl --operation clone-job --job monthlyDb +00 04 * * tue-fri root vn-vmware.pl --operation clone-job --job testDb +00 05 01 * * root vn-vmware.pl --operation clone-job --job monthlyDb -00 04 * * * root vn-vmware.pl --operation backup-job --job db -00 01 * * sat root vn-vmware.pl --operation backup-job --job friday -00 01 * * sun root vn-vmware.pl --operation backup-job --job saturday -00 01 * * mon root vn-vmware.pl --operation backup-job --job sunday +00 03 * * * root vn-vmware.pl --operation backup-job --job db +30 00 * * sat root vn-vmware.pl --operation backup-job --job friday +30 00 * * sun root vn-vmware.pl --operation backup-job --job saturday +30 00 * * mon root vn-vmware.pl --operation backup-job --job sunday diff --git a/deploy b/deploy new file mode 100755 index 0000000..b2fb642 --- /dev/null +++ b/deploy @@ -0,0 +1,5 @@ +#!/bin/bash +set -e + +vn-debuild +vn-deploy root@bacula3 diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 49aed5e..0000000 --- a/deploy.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -pkg="vn-vmware_1.0.0" -debPkg="${pkg}_all.deb" -host="root@verdnatura.es" - -debuild -us -uc -b -scp ../$debPkg $host:/root -#ssh $host dpkg -i /root/$debPkg -#ssh $host rm /root/$debPkg -debian/rules clean -rm ../${pkg}*