M
M
MURZELLO2021-12-14 23:28:23
Task Schedulers
MURZELLO, 2021-12-14 23:28:23

What does a Cron command look like to delete a folder on a server (with all files) every 30 minutes?

From 1C, it is uploaded to the online store once an hour (every xx:00 minutes) to the /systen/storage/cache/ exchange1c / folder. For some unknown reason, the archives are not deleted, and at the next download, the space on the server is full, as a result of which subsequent uploads to the site do not work. We contacted 1C support, they send it to Bitrix24 - like this is their module ... And they, in turn, transfer arrows to 1C. And so on in a circle... In general, "everything is as usual"... ))

Please help form a Cron Command (in ISPmanager) to delete the exchange1c folder (with all files) every half hour (at xx:30 minutes).

When goods are uploaded to the site, the exchange1c folder is created automatically (if it does not exist), into which import.xml, offers.xml, orders.xml files and several zip-archives (with arbitrary names) of 400-500 megabytes are loaded.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2021-12-15
@poreeff

*/30 * * * * rm -rf /systen/storage/cache/exchange1c

but, it seems to me that deleting every 30 minutes is not true. must be removed at 30 (or more) minutes of every hour.30 * * * * rm -rf /systen/storage/cache/exchange1c

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question