![](/img/trans.png)
[英]Syntax for using lftp to synchronize local folder with an ftp folder?
[英]How to synchronize a CDN folder to a local folder?
有沒有一種方法可以將CDN容器(更具體的說是cloudfiles)同步到本地文件夾? 還是有一種批量下載CDN容器的方法?
盡管似乎沒有對其進行積極維護,但這里有CloudFuse 。 它是用C編寫的,必須在您的機器上進行編譯(沒有可用的軟件包。
幸運的是,有一些文章對其進行了設置 ,但是這里是一個粗略的總結:
# Get the packages you need
apt-get install build-essential gcc libcurl4-openssl-dev libxml2-dev
libssl-dev libfuse-dev
apt-get install git
git clone https://github.com/redbo/cloudfuse.git
cd cloudfuse
./configure
make
sudo make install
創建一個名為~/.cloudfuse
的文件(請參閱主要文檔以顯示如何創建自動掛載點)。 像這樣放置~/.cloudfuse
文件:
username=[Account username for authentication, required]
api_key=[API key for authentication with Rackspace]
authurl=https://auth.api.rackspacecloud.com/v1.0 # If LON, use https://lon.auth.api.rackspacecloud.com/v1.0
region=[Regional endpoint to use]
use_snet=[True to use Rackspace ServiceNet for connections]
cache_timeout=[Seconds for directory caching, default 600]
現在您可以直接掛載目錄(新目錄或舊目錄)
$ mkdir /test
$ cloudfuse /test
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.