Simplified timer + update install instructions
This commit is contained in:
@ -3,5 +3,4 @@ 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"
|
||||
ExecStart=/bin/sh -c "/usr/bin/pg_dump -d nxy_prod > dump.sql"
|
||||
|
@ -2,9 +2,7 @@
|
||||
Description=nxy database dump timer
|
||||
|
||||
[Timer]
|
||||
# Time to wait after booting before we run first time
|
||||
OnBootSec=10min
|
||||
# Time between running each consecutive time
|
||||
OnUnitActiveSec=12h
|
||||
|
||||
[Install]
|
||||
|
Reference in New Issue
Block a user