Commit 4085c6d8 authored by Aleksey Shirokih's avatar Aleksey Shirokih

remove them again

parent 26d78ada
Pipeline #13398 failed with stages
in 3 minutes and 37 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.
[Unit]
Description=NOC supervisor backup service
[Service]
Type=oneshot
WorkingDirectory=/opt/tower
User=tower
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 {} \;"
[Install]
WantedBy=multi-user.target
[Unit]
Description=Run tower-backup.service every day
[Timer]
OnCalendar=daily
RandomizedDelaySec=180
\ 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