Slimer Script is a script written in Python whose goal is to parse all the files on a hard disk, in order to collect their name, their size, and their last modification date.
These data are then saved as log files, saved locally, and uploaded to a server.
In case of a script execution error, a Trello alert is generated.
Because I'm a man a little paranoid. If one of my many hard drives decides to die, this script probably won't be able to resurrect it, but at least I'll know immediately which files need to be restored.
-
copy
constants_example.py
andcredentials_example.py
inslimer_script/example
folder and paste them into the root of the application -
rename
constants_example.py
andcredentials_example.py
respectively intoconstants.py
andcredentials.py
-
set values into
constants.py
andcredentials.py
("Configuration variables", follow the instructions inside them) -
In
main.py
, comment the following lines if you don't want to receive alerts on your Trello in case of bad script execution (or, if you don't know how to configure this service)alm = Alerts() alm.run_script()
-
In
main.py
, comment the following lines if you don't want to upload to a server the application's operating log (logger)logger_script()
-
In
slimer_script.py
, comment the following lines if you don't want to upload to a server the backup file of your hard drives or directories informationupload_slimer_script_log(backup_file)
-
Create on your server (if you want to make a remote backup of your logs) a directory at your convenience for the Phoenix Down Script application (depending on the paths you set in step 3). In this directory you have to create a
log/slimer_script
folder. Then inside thelog/slimer_script
folder, you need to create alogger
sub-folder ; -
Do the same on your computer (or any other storage medium) for local backup (depending on the paths you set in step 3).
-
Run
main.py
! Additional information : Slimer Script is above all intended to be executed automatically by your OS, via your task scheduler if you are on Windows, orcrontab
if you are on Linux.
During the execution of Slimer Script, some non-critical errors may occur. These may be for example exceptions due to the inability to read certain files (insufficient rights, etc...). These errors will not prevent the script from executing properly.
Warning : the execution of Slimer Script may take several minutes if you choose to parse one or more hard disks in their entirety. Please be patient !