This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am zaggash on github. | |
* I am apinon (https://keybase.io/apinon) on keybase. | |
* I have a public key ASADl2LUJ5UKKkB49-ab-hiS0_QaALzsaq6TxU_-cRzIVwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"label":"Packages count","message":"25","schemaVersion":1,"color":"blue","namedLogo":"Files","logoColor":"white","style":"for-the-badge"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Automatic Backups | |
description: | | |
Create backups each day and keep them for a configurable amount of time, backups are stored less frequently the older they are. | |
By default all backups are full backups, besides the 3-hourly backups which only include the configuration. | |
**Template Variables:** | |
- `name` — backup name configured below | |
- `password` — backup password configured below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: mysql | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: mysql | |
serviceName: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cleaning logs. | |
if [ -f /var/log/audit/audit.log ]; then | |
cat /dev/null > /var/log/audit/audit.log | |
fi | |
if [ -f /var/log/wtmp ]; then | |
cat /dev/null > /var/log/wtmp | |
fi | |
if [ -f /var/log/lastlog ]; then | |
cat /dev/null > /var/log/lastlog | |
fi |