Although SME 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 SME enterprise cloud appliance solution 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 SME CloudDavm the SME WebDAV implementation, which exposes Cloud Storage systems over WebDav even if they do not natively support it. This is a feature of the SME protocol Gateway which is part of the SME Enterprise Appliance.
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 SME 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 SME enterprise cloud appliance can be used to sync folders to Cloud Storage from a headless Linux Serverby
Latest posts by Storage Made Easy (see all)
- What is the Enterprise File Fabric? - January 16, 2019
- 2018 was they year of the data breach so what can be done ? - December 14, 2018