Giter Site home page Giter Site logo

ludovic-gasc / mycloud-restsdk-recovery-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from springfielddatarecovery/mycloud-restsdk-recovery-script

0.0 0.0 0.0 29 KB

A script to recover files from MyCloud REST SDK Folder Structure

License: GNU Lesser General Public License v3.0

Python 100.00%

mycloud-restsdk-recovery-script's Introduction

Free WD MyCloud Data Recovery Tool

mycloud-restsdk-recovery-script

A script to recover files from MyCloud REST SDK Folder Structure

Problem: MyCloud devices don't use a simple, flat filesystem like other external drives, they store files with random-seeming names and directory structures. If your MyCloud is not functioning, you will need to read the SQLite database on the device to determine the original file structure.

Solution: This script reads the database and a dump of the filesystem and copies the data to another location with the correct filenames and structures. This script is intended for a Linux machine where you already have the file structure and database extracted. This won't work on Windows. I know it's ugly and inefficient, I am new to python. This is tested and working with Python 3.6 on Linux.

More: Need more help than this script can offer? We offer affordable flat-rate data recovery at our website

If this script has helped you recover your data, please consider saying thanks with a crypto/Bitcoin donation

  • Bitcoin: 1DqSLNR8kTgwq5rvveUFDSbYQnJp9D5gfR
  • ETH: 0x9e765052283Ce6521E40069Ac52ffA5B277bD8AB
  • Zcash: t1RetUQktuUBL2kbX72taERb6QcuAiDsvC4

Don't have any crypto? Buy some at Coinbase

FUTURE DEVELOPMENT: This code will not be receiving any updates, feel free to fork it if you want to make improvements.

Notes: SQLite database is stored in /restsdk/data/db/index.db. Inside the DB two main tables appear to be of interest, FILES and ImageTrans. FILES lists each file with a unique ID (primary key) and a ContentID (the name of the file when stored on the filesystem) along with the file name "My important picture.jpg" and some other metadata. I believe ImageTrans is only for thumbnailing purposes but I could be wrong about that. Importantly, the entries in FILES have a "parent" attribute which places each file in a directory structure. This script totally ignores ImageTrans.

mycloud-restsdk-recovery-script's People

Contributors

springfielddatarecovery 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.