Shadowdirectory IS NATIVELY AVAILABLE in PI 3.1.3 (look for Background Task 'Device Config Backup-External')
Sometimes functionality that is missing from the GUI still is available through the API as a workaround. A good example is the Shadow Directory, which was available in Cisco Prime LMS and is not yet available in Prime Infrastructure. However still through the API configurations can get pulled and stored in a directory to mimic this. This functionality is often requested by customers hence I putted together this short example.
Zip File contains 2 folders 'prime' & 'clitools'. The folder 'prime' contains the files 'PrimeBasicTools', 'PrimeShadowDirectory' and 'UserTrackingUtility'. In 'clitools' you will find 'PrimeShadowDirectoryRunner' and 'UserTrackingUtilityRunner'.
Disclaimer: Use at your own risk / no support offered
This is not meant to run this directly on PI. Basically you can run this on any PC/Workstation/Server you like. You would only need to have IP connectivity from this station to PI and install Python 3 on it. After that, you can then execute those commands above manually or also schedule a cron job to do it regularly to back up your configs.