alwaysbusy
Verified User
- Joined
- Apr 19, 2020
- Messages
- 108
Hi
following situation:
I have a DirectAdmin server with several users (+ domains) on it. This are all domains from me, so there are in real no other users using that server beside me.
I have a json database file, which needs to get updated every few minutes for a script. And i need it on several domains. Before now every users is downloading the json file via a cronjob every few minutes and generating there a traffic volume from a few tb per month, i thought i download it on one place and make then a cronjob, which is overwriting this json database file in the necessary user folders.
My technical guys from the server setup for this the following cronjob as admin:
For example: the cronjob should copy from "usera" from the folder "foldera" the file "database.json" to "userb" in the folder "folderxyz" and overwrite there the "database.json" file every 5 minutes. But this command seems not to work and my technicals guys are trying to fix this already since hours.
Has someone a tip for me, how i can get this working in an easy way?
Thanks and Greets
following situation:
I have a DirectAdmin server with several users (+ domains) on it. This are all domains from me, so there are in real no other users using that server beside me.
I have a json database file, which needs to get updated every few minutes for a script. And i need it on several domains. Before now every users is downloading the json file via a cronjob every few minutes and generating there a traffic volume from a few tb per month, i thought i download it on one place and make then a cronjob, which is overwriting this json database file in the necessary user folders.
My technical guys from the server setup for this the following cronjob as admin:
| cp -rf /home/usera/public_html/cronjobs/foldera/database.json /home/userb/public_html/folderxyz/database.json -y |
For example: the cronjob should copy from "usera" from the folder "foldera" the file "database.json" to "userb" in the folder "folderxyz" and overwrite there the "database.json" file every 5 minutes. But this command seems not to work and my technicals guys are trying to fix this already since hours.
Has someone a tip for me, how i can get this working in an easy way?
Thanks and Greets