Giter Club home page Giter Club logo

dmcloud-migrate's Introduction

Dailymotion Cloud migration scripts

The DmCloud service by Dailymotion is shutting down; this repository provides python scripts for making a backup of all your DmCloud assets, and eventually migrating your data to another service.

Install

Always use a virtual environment when installing python dependencies:

virtualenv venv
source venv/bin/activate
pip install git+https://github.com/openfun/dmcloud-migrate.git

Usage

Set up your DmCloud credentials:

export DMCLOUD_USER_ID="yourdmclouduserid"
export DMCLOUD_API_KEY="yourdmcloudapikey"

Check how much space the download is going to take:

dmsize ./path/to/download/

Download media files:

# Check everything before actually downloading:
dmdownload --fake ./path/to/download/

# Perform a full backup:
dmdownload ./path/to/download/

# Perform a full backup for one of your organisation's users:
dmdownload --user=username ./path/to/download/

File system hierarchy

Whenever you perform a full backup for your organisation, the files will be downloaded in the following filesystem hierarchy:

rootpath/
    username1/
        media.json
        medianame1/
            mediaid/
                assets.json
                assetname1
                assetname2
                ...
        medianame2/
            ...
        ...
    username2/
        ...
    ...

For instance, if you have a single user named 'bob', here is a possible file structure:

$ dmdownload --user=bob ./dump/

./dump/
    bob/
        media.json
        My holiday video (2014)/
            531594c29473991c7f21e181/
                assets.json
                jpeg_thumbnail_medium.jpg
                mp4_h264_aac_hd.mp4
                source.mp4
        Test video 42/
            1264cde462416235548e5f69/
                assets.json
                jpeg_thumbnail_source.jpg
                source.dat

dmcloud-migrate's People

Contributors

regisb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.