⬆️ ⬇️

Unlimited cloud storage

Today there are many services that provide access to cloud storage (the most popular of them is the dropbox). Almost all have a free account with limited data. In the article Downloading DropBox in the “Full auto” mode it was told how you can increase the volume of your dropbox account and by 8 GB without wasting any effort.

However, this article focuses on getting “unlimited” volume in the cloud using services based on WebDAV.

Who cares - welcome!





Introduction



Dropbox and similar services are based on the synchronization of local data with the server. Those. all data is stored in at least two places (on your computer and in the cloud), while taking up additional space on your hard drive.

However, there is another way to achieve the goal - storing information in the cloud storage. For example, you can use sshfs. However, it is not acceptable to work on the Internet to provide this service. But WebDAV is suitable for this.



Preparatory part



Test bench:

1. linux, in the examples will be used ubuntu 11.04;

2. a service that supports WebDAV (for example, this one );

3. mhddfs is a kind of raid for folders, but with certain features in the work;

4. Basic knowledge of working with the console in linux.

')

Getting unlimited space



We register two different users on the server that provides access via WebDAV.

Install mhddfs and davfs:

sudo apt-get install mhddfs davfs2



Install WebDAV directories in the / mnt / webdav1 and / mnt / webdav2 folders

sudo mount -t davfs -o rw url /mnt/webdav1/

sudo mount -t davfs -o rw url /mnt/webdav2/



Then we merge webdav1 and webdav2 into one webdav directory using mhddfs:

mhddfs /mnt/webdav1,/mnt/webdav2 /mnt/webdav



What do we have in the end? We got 4 gigabytes of free space (2 accounts of 2 GB each) on the remote server, plus we can work with several folders using only / mnt / webdav.



Advantages and disadvantages of this method



+ There is no need to store files on your computer (absolutely everything is stored in the cloud), i.e. theoretically you can store 1 TB of data on a computer with 20 GB of hdd;

+ when adding a new user, you get additional space, thus achieving “unlimited” volume;

+ Finally, we work with one folder, although the information is stored in different places;

+ If you record a lot of files, the total amount of which exceeds the space for one user, then mhddfs automatically scatters them in different folders.



- if the connection is broken, some of the files (which are not synchronized with the server) will be lost;

- if the file size exceeds the amount of space reserved for one user, then it will not be possible to write it to the / mnt / webdav folder.

Source: https://habr.com/ru/post/123559/



All Articles