Backup via console Backup not found

I have setup a cron job for backup via console with the following script:

php /path/to/cart/admin.php --dispatch=datakeeper.backup --p --backup_database=Y --backup_files=Y --dbdump_tables=all --dbdump_data=Y --extra_folders[]=var/files --extra_folders[]=var/attachments --extra_folders[]=var/langs

as per the instructions from the cscart docs: Backing Up a Store via Console — CS-Cart 4.17.x documentation

The script runs successfully according to cronitor, a cron job monitoring tool. However, i cannot find the backup at var/backups. I am guessing the job is not successful as its runtime is only 6 seconds, or are the backups stored elsewhere on the server?


It should be in the public_html/var/backups

Try to create backup from the admin panel. Possibly there is permissions issue

1 Like


  1. Please blur the name of the admin script in your screenshot, for your own security.
  2. Why does this ‘cron manager’ return the HTTP request headers as a result of the command execution? If the task was executed by cron, it should not have headers, since it is equivalent to executing it from the terminal, and in this case CS-Cart does not output headers.