Forum Discussion

Michael_Baker's avatar
27 days ago

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)

  1. Create a local readonly user with a password
  2. 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)
  3. 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"

No RepliesBe the first to reply