Michael_Baker
4 hours agoNeophyte
LM datasources backing up
I attempted to post this with Chrome and it did not render at all :/ hence the undefined but here's a tip (No idea how long it will work for
LM DataSources -> Github. (We use GitHub actions on a cron schedule with the below)
- Create a local readonly user with a password
- You need to know the current portal version here on it replace $PORTAL with your portal name
DBV=$(curl -s https://$PORTAL.logicmonitor.com/santaba/|grep -oP '(?<=sbui)\d+'|head -n 1)
- Now with the user you created before fetch the whole lot!
curl -o lm-backups.xml "https://$PORTAL.logicmonitor.com/santaba/api/downloadConfig?version=$DBV&username=$USERNAME&password=$PASSWORD=$PORTAL"