Rescheduling, deployment

This commit is contained in:
Juan 2018-08-16 08:43:11 +02:00
parent 478fbab5dd
commit 1004770f04
3 changed files with 11 additions and 18 deletions

12
debian/cron.d vendored
View File

@ -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

5
deploy Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
vn-debuild
vn-deploy root@bacula3

View File

@ -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}*