Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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