Skip to content

Instantly share code, notes, and snippets.

@matthewtckr
Created September 15, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewtckr/304c559dd1a6aee7f31d0406d453a611 to your computer and use it in GitHub Desktop.
Save matthewtckr/304c559dd1a6aee7f31d0406d453a611 to your computer and use it in GitHub Desktop.
Pentaho Backups without Credentials
<filter-mapping>
<filter-name>Proxy Trusting Filter</filter-name>
<url-pattern>/api/repo/files/backup</url-pattern>
</filter-mapping>
#!/bin/bash
HOSTNAME="http://localhost:8080/pentaho"
TRUSTUSER="admin"
BACKUP_LOCATION=~/backups/
FILENAME="backup_$(hostname)_baserver_$(date +'%Y%m%d-%H%M%S').zip"
curl "$HOSTNAME/api/repo/files/backup?_TRUST_USER_=$TRUSTUSER" -o "$BACKUP_LOCATION$FILENAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment