units.txt 217 B

12345678
  1. [Unit]
  2. name=Odoo Backup service
  3. depends=docker.service
  4. [Service]
  5. Type=oneshot
  6. ExecStart=/usr/bin/docker exec -t database pg_dump -d odootest -U odoo -c > /home/core/backup/odootest_$(date +%d-%m-%Y"_"%H:%M:%S).dump