insights
2021.10
false
- Release Notes
 - Getting Started
 - Installation and Upgrade
 - Access and Permissions
 - Interacting with Insights
 - Troubleshooting
 

OUT OF SUPPORT
Insights
Last updated Nov 11, 2024
Use this procedure to crate a backup and restore your dashboards.
- Run PowerShell as
                     Administrator.
powershellpowershell - 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_insightsfolder inC:\Users\<your-user-name>. - Exit PowerShell.
exitexit 
- Run PowerShell as
                     Administrator.
powershellpowershell - 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_urlto 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.