簡體   English   中英

如何將CDN文件夾同步到本地文件夾?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM