Created
September 15, 2016 16:29
-
-
Save matthewtckr/304c559dd1a6aee7f31d0406d453a611 to your computer and use it in GitHub Desktop.
Pentaho Backups without Credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter-mapping> | |
<filter-name>Proxy Trusting Filter</filter-name> | |
<url-pattern>/api/repo/files/backup</url-pattern> | |
</filter-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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