Synchronising folders to remote Cloud storage

Procédure

Installing the DavFS package

First of all, you need to install the DavFS package

So, for example, on Ubuntu, Debian, Mind, davfs2 can be installed as follows:

sudo apt-get install davfs2


On Fedora, CentOS, OpenSuse, etc, davfs2 can be installed with the following command:

yum install davfs2

A remote storage folder can be mounted using NextCloud even if it is not natively supported by the system. This is a feature of the NextCloud protocol gateway.


To mount remote storage in a local folder:

mount -t davfs https://webdav.cloudlws.com ~/Yourfolder https://webdav.cloudlws.com ~/Yourfolder


If you want to synchronise files from your NextCloud account to a local folder, you can run the command:

rsync -rutv ~/CloudDAV/ /local/directory/


If you want to synchronise files from your local folder to the remote storage space, run the following command:

rsync -rutv --inplace /local/directory/ ~/NextCloud/


Once the configuration has been made, you can add it to a script and check that it is working using a cron job.
If you don't yet have an online storage package or would like to upgrade to a cloud storage package with advanced features, please consult this documentation to place your order, and find information about the Nextcloud and Nextcloud Pro packages here.

help.lws.net/a/949
Was this article helpful?

Yes

No

Read 14 337 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.