Created
June 13, 2019 07:01
-
-
Save nqxcode/8478b3470de156b1bd93c03c205182d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Run backups for external versions of sites" | |
author "Andrey Pokoev" | |
start on filesystem or runlevel [2345] | |
stop on shutdown | |
respawn | |
script | |
exec sudo -u andrey /usr/bin/php /home/andrey/work/php/web/list-site/artisan app:backup | |
end script | |
pre-start script | |
exec echo Start mass backups at `date` >> /var/log/external-backups.log | |
end script | |
post-stop script | |
exec echo Finish mass backups at `date` >> /var/log/external-backups.log | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment