[Unit] name=Odoo Backup service depends=docker.service [Service] Type=oneshot 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