Is there a way to synchronize a CDN container (cloudfiles to be more specific) to a local folder? Or is there a way to bulk a download a CDN container?
Though it doesn't seem to be actively maintained, there is CloudFuse . It's written in C and has to be compiled on your box (no packages available.
Luckily, there are articles for setting it up , but here's a rough summary:
# 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
Create a file named ~/.cloudfuse
(see the main doc to show how to make an automatic mountpoint). Lay the ~/.cloudfuse
file out like so:
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]
Now you can mount a directory (new or old) directly
$ mkdir /test
$ cloudfuse /test
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.