V
V
Vechkov Alexander2019-08-28 17:43:02
MODX
Vechkov Alexander, 2019-08-28 17:43:02

How to add BackupMODX to cron?

The fact that in the system settings you can enable scheduled backups - I know that. But then what? What script should I add to cron? Generally no idea. Tell me please!
Or use another plugin?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2019-08-28
@i__dmitry

This component works as a widget in the admin panel.
A relatively simple way is to create a separate script (in the form of a .php page or a page with a snippet, which is preferable), and pull out the classes and functions of this component in it, and then configure it to run on Cron.

D
dez64ru, 2019-09-12
@dez64ru

{тут параметры запуска крона} {пользователь под которым запускать} php {путь до папки assets}/components/backupmodx/cron.php

For example:
once a week at 3 am, starting from Mon, under the user php
I'm not sure, but it should work in theory (be sure to enable the "backupmodx.core_path" setting).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question