bluefeds: update crontabs
This commit is contained in:
parent
d4b166a419
commit
717afc158a
|
@ -451,18 +451,15 @@ systemctl --user enable container-caddy-vishwambhar container-gitea-chitragupta
|
||||||
### user crontab
|
### user crontab
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# a zfs scrub takes place on the first Friday of every month
|
# check if containers are running or not; restart if stopped
|
||||||
# this is done at 21:00 hours
|
*/5 * * * * bash /home/pratham/.scripts/_bluefeds/cron/pratham/maintenance.sh >/dev/null 2>&1
|
||||||
# so stop all containers before the scrub takes place
|
|
||||||
# DON'T DO THIS THO
|
|
||||||
#55 20 * * 5 [ $(date +\%d) -le 07 ] && systemctl --user stop container-caddy-vishwambhar container-gitea-chitragupta container-gitea-govinda container-hugo-mahayogi container-hugo-vaikunthnatham container-nextcloud-chitragupta container-nextcloud-govinda container-nextcloud-karma container-transmission-raadhe
|
|
||||||
|
|
||||||
# maintenance script
|
# run Nextcloud cron
|
||||||
# [[ if zpool scrub is not running ]]
|
*/5 * * * * podman exec -u www-data nextcloud-govinda /usr/local/bin/php -f /var/www/html/cron.php >/dev/null 2>&1
|
||||||
# -> [[ if containers are not running ]]
|
|
||||||
# -> start containers
|
# Nextcloud: scan files for all users and perform cleanup
|
||||||
*/5 * * * * bash /home/pratham/.scripts/cron/pratham/maintenance.sh
|
10 */2 * * * podman exec -u www-data nextcloud-govinda /usr/local/bin/php -f /var/www/html/occ files:scan --all >/dev/null 2>&1
|
||||||
*/5 * * * * podman exec -u www-data nextcloud-govinda php cron.php
|
40 */2 * * * podman exec -u www-data nextcloud-govinda /usr/local/bin/php -f /var/www/html/occ files:cleanup >/dev/null 2>&1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -470,16 +467,16 @@ systemctl --user enable container-caddy-vishwambhar container-gitea-chitragupta
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# update fs database every 6 hours
|
# update fs database every 6 hours
|
||||||
* */6 * * * updatedb
|
* */6 * * * updatedb >/dev/null 2>&1
|
||||||
|
|
||||||
# create zfs snapshot of `nextcloud` volume every Friday
|
# create zfs snapshots every Friday
|
||||||
0 0 * * 5 bash /home/pratham/.scripts/cron/root/zfs-bak.sh
|
0 0 * * 5 bash /home/pratham/.scripts/cron/root/zfs-bak.sh >/dev/null 2>&1
|
||||||
|
|
||||||
# start scrub
|
# start scrub
|
||||||
# on the first Friday of every month
|
# on the first Friday of every month
|
||||||
# at 2100 hours
|
# at 2100 hours
|
||||||
0 21 * * 5 [ $(date +\%d) -le 07 ] && /sbin/zpool scrub
|
0 21 * * 5 [ $(date +\%d) -le 07 ] && /sbin/zpool scrub >/dev/null 2>&1
|
||||||
|
|
||||||
# maintenance script
|
# maintenance script
|
||||||
#0 20 * * * bash /home/pratham/.scripts/cron/root/maintenance.sh
|
#0 20 * * * bash /home/pratham/.scripts/cron/root/maintenance.show
|
||||||
```
|
```
|
||||||
|
|
|
@ -43,6 +43,7 @@ sudo systemctl enable nvidia-suspend nvidia-hibernate nvidia-resume
|
||||||
# sudo apt install system76-driver-nvidia
|
# sudo apt install system76-driver-nvidia
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Generate SSH keys
|
### Generate SSH keys
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
Loading…
Reference in New Issue