Answer the question
In order to leave comments, you need to log in
How to implement backup on Yandex disk?
Good afternoon. How to write a script to automatically create a backup copy of the site on Yandex.disk? There is a hosted site (not VDS, but just hosting) https://www.ukraine.com.ua/. The site knows 3 GB out of 5 GB. On Yandex we use a paid tariff, there is a method. There is no problem with this. It is necessary to transfer the entire site + database there through the cron task. The site is powered by WordPress. Google drive and dropbox - I dismiss it right away. Can you suggest how to do it?
Answer the question
In order to leave comments, you need to log in
the problem is what .. Yandex supports webdav. mount as a folder and backup as usual
It seems to me that you have no other choice but to run a php script using the cron, which, using the Yandex.API library , uploads file by file .
And it's not a fact that your hoster will not be against such activity...
A new fusefs connection is established and data is uploaded there. After finishing work, you need to delete the folder in / tmp, where fuse caches data. Otherwise, a copy of the copied will also lie on the server.
You can try the console utility ydcmd (judging by the tariffs, python is available there).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question