Skip to content

Instantly share code, notes, and snippets.

@nqxcode
Created June 13, 2019 07:01
Show Gist options
  • Save nqxcode/8478b3470de156b1bd93c03c205182d8 to your computer and use it in GitHub Desktop.
Save nqxcode/8478b3470de156b1bd93c03c205182d8 to your computer and use it in GitHub Desktop.
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