nxy/files/nxy-db-dump.service

8 lines
187 B
SYSTEMD
Raw Normal View History

2017-08-22 18:27:52 +00:00
[Unit]
Description=nxy database dump timer
[Service]
Type=oneshot
WorkingDirectory=/home/nxy/backups
ExecStart=/bin/sh -c "/usr/bin/pg_dump -d nxy_prod > $(date +%Y-%m-%d_%H-%M-%S).sql"