C
C
centrin02015-11-15 12:59:42
linux
centrin0, 2015-11-15 12:59:42

Is it possible to speed up Webdav from Yandex?

I decided to use webdav from Yandex to store backups. Installed the davfs2 package. Mounted.
But it works slowly. rsync will just copy files for a very long time.
Maybe you can specify some tricky mount options or configure davfs2 itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bukharev, 2015-11-15
@centrin0

I backup the file system and database in this way, everything works like clockwork:

TIME=`date +%Y-%m-%d-%H-%M-%S`
SERVER_NAME="servername"

MYSQL_FILE=/tmp/$SERVER_NAME-mysql.$TIME.sql.gz
FS_FILE=/tmp/$SERVER_NAME-fs.$TIME.tar.gz

# Archiving databases
mysqldump -u *** --password=*** backup_db | gzip > $MYSQL_FILE
if [ -f $MYSQL_FILE ]; then
    echo $TIME" db dump created"

# Uploading to the cloud
curl --user ***@yandex.ru:***-T "{$MYSQL_FILE}" https://webdav.yandex.ru/backup/database/
#Delete archve
rm $MYSQL_FILE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question