insights
2021.10
false
UiPath logo, featuring letters U and I in white
OUT OF SUPPORT

Insights

Last updated Nov 11, 2024

Backup and Restore

Use this procedure to crate a backup and restore your dashboards.

Create Backup

  1. Run PowerShell as Administrator.
    powershellpowershell
  2. 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 in C:\Users\<your-user-name>.
  3. Exit PowerShell.
    exitexit

Restore

  1. Run PowerShell as Administrator.
    powershellpowershell
  2. 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 /"
  3. (Optional) If the hostname has changed, edit the files.
    Open the backup file and search for host_url to find the string that starts with https://.


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.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
© 2005-2025 UiPath. All rights reserved.