franciscofregona / dpsourcer Goto Github PK
View Code? Open in Web Editor NEWPython script to analize and produce a list of subdirectories under some size, for DataProtect backup to work.
Python script to analize and produce a list of subdirectories under some size, for DataProtect backup to work.
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.