Although the File Fabric provides Linux GUI Apps, a frequent request is to be able to sync cloud storage with a Linux Server in headless mode.
This can be achieved with the the Enterprise File Fabric as follows:
Firstly you would require the DavFS package to be installed.
So, for example in Ubuntu, Debian, Mind, KUbuntu, etc. davfs2 can be installed as follows:
sudo apt-get install davfs2
In Fedora, CentOS, OpneSUSE, etc. davfs2 can be installed by
sudo yum install davfs2
A remote storage folder can be mounted using the File Fabric’s CloudDav, a WebDAV implementation, which exposes a Cloud Storage system over WebDav even if it do not natively support it. This is a feature of the protocol Gateway which is part of the Enterprise File Fabric.
To mount the remote storage to a local folder:
mount -t davfs https://webdav.storagemadeeasy.com ~/YourFolder
If you want to sync files from your File Fabric account to local folder then you can execute the command:
rsync -rutv ~/SME_CloudDAV/ /local/directory/
If you want to sync files from your local folder to the remote storage then execute the command:
rsync -rutv --inplace /local/directory/ ~/SME_CloudDAV/
For more info see the rsync man page.
Once you have this setup you can simply add it to a script and control when it runs using CRON.
This post outlines how the File Fabric can be used to sync folders to Cloud Storage from a headless Linux Serverby
Latest posts by Storage Made Easy (see all)
- How to securely web enable access to CIFS / SMB File Shares - January 12, 2021
- How To Easily Create Private Password Protected Amazon S3 Links And Folders - March 12, 2019