SOLVED. here is how i did:
extra_scripts = prepost.py to my [env:####] in platformio.ini under my project directory.
Then I wrote this simple Python script that calls up my shell script for the target uploadfs, prior to the upload:
def before_upload(source, target, env):