systemd-infrastructure/README.md

23 lines
691 B
Markdown
Raw Permalink Normal View History

2023-04-17 22:01:08 +00:00
---
lang: en-us
---
2023-04-12 01:12:48 +00:00
# systemd-infrastructure
2023-05-02 16:57:11 +00:00
Infrastructure for backing containers up
2023-04-17 22:01:08 +00:00
2023-05-02 16:57:11 +00:00
## How to add services
2023-04-12 22:16:09 +00:00
2023-05-02 16:57:11 +00:00
If you create pods or containers, then you can easily let Podman generate systemd services for you. [Man page](https://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html).
Examples for creating pods and containers are in the [compose repo](https://git.fl1tzi.com/server/compose).
2023-04-17 22:01:08 +00:00
## Backup
2023-04-12 22:16:09 +00:00
Both `backup.service` and `backup-schedule.timer` need to be present in the systemd user folder.
`backup.service` gets started by `backup-schedule.timer` on the schedule that is defined in `backup-schedule.timer`.
**The backup script has to be configured correctly!**