I'm writing a script that would back-up my PrestaShop instance installed on my own server. I'm using Prestashop 1.7.7.4.
I suppose it is recommended to put your shop(s) in "Maintenance mode" during database dumping, to make sure nobody interacts with it. However, the only method of enabling the "Maintenance mode" I can find is using the administration panel, which of course requires manual intervention. It makes automatic backups impossible.
Is there any established way to enable "Maintenance mode" using a script/cli/api and not the administration panel?
For active shop
For maintenance mode