insights
2021.10
false
- Release Notes
- Getting Started
- Installation and Upgrade
- Access and Permissions
- Interacting with Insights
- Troubleshooting
Backup and Restore
OUT OF SUPPORT
Insights
Last updated Nov 11, 2024
Backup and Restore
Use this procedure to crate a backup and restore your dashboards.
- Run PowerShell as
Administrator.
powershell
powershell - Create a
backup.
$image=$(docker container inspect looker-container -f '{{ .Image }}') $backupPath="$HOME\)\)insights\)\)backup" New-Item $backupPath -ItemType Directory -ErrorAction SilentlyContinue docker run -u root --rm --platform linux --volumes-from looker-container -v ${backupPath}:/backup ${image} bash -c "tar cvf /backup/looker_backup.tar --absolute-names /app/workdir/.db /mnt/lookerfiles"
$image=$(docker container inspect looker-container -f '{{ .Image }}') $backupPath="$HOME\)\)insights\)\)backup" New-Item $backupPath -ItemType Directory -ErrorAction SilentlyContinue docker run -u root --rm --platform linux --volumes-from looker-container -v ${backupPath}:/backup ${image} bash -c "tar cvf /backup/looker_backup.tar --absolute-names /app/workdir/.db /mnt/lookerfiles"Note: You can find the backup file in the_insights
folder inC:\Users\<your-user-name>
. - Exit PowerShell.
exit
exit
- Run PowerShell as
Administrator.
powershell
powershell - Restore the files using the
backup.
$image=$(docker container inspect looker-container -f '{{ .Image }}') $backupPath="$HOME/insights/backup" docker run -u root --rm --platform linux --volumes-from looker-container -v ${backupPath}:/backup ${image} bash -c "tar xvf /backup/looker_backup.tar -C /"
$image=$(docker container inspect looker-container -f '{{ .Image }}') $backupPath="$HOME/insights/backup" docker run -u root --rm --platform linux --volumes-from looker-container -v ${backupPath}:/backup ${image} bash -c "tar xvf /backup/looker_backup.tar -C /" - (Optional) If the hostname has changed, edit the
files.
Open the backup file and search for
host_url
to find the string that starts withhttps://
.
Copy the string that starts with
$2a$12$
and overwrite all occurrences in the backup file.
Note: Turn off regex in the editor if you cannot find these lines.