Problems on Laravel Forge
stuartcusackie opened this issue · comments
Can anyone advise me on this? The command below works fine via SSH but fails to trigger as a nightly scheduled job on Laravel Forge running as the forge user:
php /home/forge/mywebsite.com/artisan db:backup --database=mysql --destination=s3 --destinationPath=date +\%Y/dailys/%d
--compression=gzip
I'm not too confident on the use of backticks so perhaps they are the problem?
Nevermind. I figured it out. Need to escape every % in the date variables with , so it becomes:
php /home/forge/mywebsite.com/artisan db:backup --database=mysql --destination=s3 --destinationPath=date +\%Y/dailys/\%d
--compression=gzip