Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3412ef82ae | |||
00c717686b |
1
sv/cron.txt
Normal file
1
sv/cron.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
0 21 * * 1-7 /root/svbase
|
20
sv/goss.yaml
Normal file
20
sv/goss.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
file:
|
||||||
|
/root/latest.sql.gz:
|
||||||
|
exists: true
|
||||||
|
mode: "0644"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
command:
|
||||||
|
crontab -l:
|
||||||
|
exit-status: 0
|
||||||
|
stdout:
|
||||||
|
- 0 21 * * 1-7 /root/svbase
|
||||||
|
stderr: []
|
||||||
|
timeout: 10000
|
||||||
|
ssh ap22 hostname:
|
||||||
|
exit-status: 0
|
||||||
|
stdout:
|
||||||
|
- ap22
|
||||||
|
stderr: []
|
||||||
|
timeout: 10000
|
2
sv/restorebase
Executable file
2
sv/restorebase
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
zcat latest.sql.gz|ssh root@ap22 "mysql -u gsbadm -pgsbadm gsbvisite"
|
Reference in New Issue
Block a user