Remove timers

parent f9ed26d8
Pipeline #13394 failed with stages
in 5 minutes and 47 seconds
......@@ -4,4 +4,3 @@ Additional scripts
That directory contains scripts used with systems based on systemd.
* `noc-tower.service` should be placed to `/etc/systemd/system`
* `noc-tower-backup.service` and `noc-tower-backup.timer` should be used together for backup. Backup directory is hardcoded with `/opt/tower_backup`. Also script will remove backup after 5 days. Fell free to change that values on your flavour.
\ No newline at end of file
Description=NOC supervisor backup service
ExecStart=/bin/bash -c "/opt/tower/bin/tower-dump --output /opt/tower_backup/`date +%%Y-%%m-%%d-%%H:%%M`.dump"
ExecPostStart=/bin/bash -c "find /opt/tower_backup/ -mtime +5 -exec rm {} \;"
Description=Run tower-backup.service every day
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment