I
I
Igor Vedenov2015-07-24 18:08:19
Yandex
Igor Vedenov, 2015-07-24 18:08:19

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

4 answer(s)
M
mikes, 2015-07-24
@pskov-igor

the problem is what .. Yandex supports webdav. mount as a folder and backup as usual

S
Sergey Savostin, 2015-07-24
@savostin

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...

S
svd71, 2015-07-24
@svd71

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.

A
Anton Batenev, 2015-07-26
@antonbatenev

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 question

Ask a Question

731 491 924 answers to any question