Skip to content

Script for Unraid or other NAS that runs "Tree" command to get a text list of your files

License

Notifications You must be signed in to change notification settings

aden-webster/set-yourself-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

set-yourself-TREE

sorry for the pun...

Tree from What?

I don't know, I just thought it was a funny name. But really, I had a situation lately that having ran tree previously saved the day.

On my unRAID NAS server, I have lots of media that would be pretty easy to replace if the unthinkable happened. In cases such as this, having an accurate layout and list of contents of your folders can be vital to restoration, god forbid. Trust me, you might think you know what is on your hard drives but when it comes down to an itemized list, you will miss some things.

treeout

Thereby, a script that automagically dumps the file metadata of your drives in a sane, readable format can be invaluable in case you ever delete something on accident or screw up, and accidentally wipe the contents of the Cache drive which contained all the recent TV shows I had moved.

Installation

I set this up as a docker image which basically just runs a simple Python script. You can configure the time length between runs (I do every 5 days) and obviously you will need to change the ENV FLAGS for your mount/folder locations.

TLDR

Script for unRAID or other NAS that runs "Tree" command to get a text list of your files. Call it a poor mans mirror.

TO DO:

ENV Variables for docker run/compose to enter volumes Gsuite/Cloud integration

About

Script for Unraid or other NAS that runs "Tree" command to get a text list of your files

Resources

License

Stars

Watchers

Forks

Releases

No releases published