Giter Club home page Giter Club logo

dpsourcer's Introduction

dpsourcer.py

This script is free to use and modify, on a non commercial application, per http://creativecommons.org/licenses/by-nc/4.0/

This script analizes a path in the filesystem and tries to put together a list of the directories within, on which the size of each directory does not overcome certain values of size and number of files.
Beneath a certain depth, the script obtains the numbers itself, invoking itself recursively. After said depth, it calls for the O.S.'s <du> and <ls> to quickly estimate size and number of files values, without further recursion (and drastically cutting the run times).


==The problem==
HP (Now MicroFocus) Data Protector back up software client "walks" the filesystem to be copied during a back up procedure.
Said walker hangs forever and timeouts, failing the back up operation, in some filesystems that are too "big" (being "big" some combination of the number of files within, the size of said files and the lenght of the path.)

==The solution==
Reducing somehow the size of the tree to be explored reduces the time it takes the walker to return. So the problem is now how to programatically cut the tree into branches that are smaller than some value and, of course, include every directory in the main tree.
In a way: taking a "big" source of backup and turning it into smaller sources.

This script does that.

dpcomposer.py

This script takes the json exit from the previous and turns it into a datalist file fragment, to add into an actual Data Protect job definition file (datalist).

dpsourcer's People

Watchers

James Cloos avatar Frank 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.