Compare commits

...

2 Commits

Author SHA1 Message Date
simon e422c11d94
add pgbackup timers for systemd 2022-11-03 12:16:22 +07:00
simon da4a9ea58d
undo close graph 2022-11-03 11:54:50 +07:00
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,8 @@
[Unit]
Description=backup postgres database
[Service]
User=simon
Group=simon
Type=oneshot
ExecStart=bash /home/simon/docker/helper_scripts/db_backup.sh

View File

@ -0,0 +1,8 @@
[Unit]
Description=backup postgres database
[Timer]
OnCalendar=*-*-* 2:00:00
[Install]
WantedBy=multi-user.target

View File

@ -197,7 +197,6 @@ class MonthGenerator():
plt.tight_layout()
plt.savefig(file_name, dpi=300)
plt.figure()
plt.close()
@staticmethod
def get_aqi(val):