Page 1 of 1

[Resolved]cron cli command

Posted: Sat May 26, 2018 6:15 am
by khampol
I need cron for backup stuff, as command i use something like this :

Code: Select all

/usr/local/vesta/bin /home/admin/web/mydomain.com/public_html/akeeba_backup/cli/backup.php --profile=2
but looks its not good as backup are not done.

Code: Select all

/usr/local/vesta/bin
Is this ok?...

Re: cron cli command

Posted: Sat May 26, 2018 7:45 am
by mehargags
you should NOT use /usr/local/vesta/bin, it is VestaCP's internal PHP.
You should use Server-wide PHP installed in /usr/bin/php

run this command in your terminal

Code: Select all

/usr/bin/php /home/admin/web/mydomain.com/public_html/akeeba_backup/cli/backup.php --profile=2
and see if it runs correctly and completes with the result

Re: cron cli command

Posted: Sat May 26, 2018 3:53 pm
by khampol
I run the command and that works! I correct in all my cron.
Thanks a lot :D