insights
2021.10
false
  • Release Notes
      • 2021.10.1
      • 2021.10.2
      • 2021.10.3
      • 2021.10.4
      • 2021.10.5
      • 2021.10.6
      • 2021.10.7
      • 2021.10.8
      • 2021.10.9
    • User Migration Tool Release Notes
  • Getting Started
  • Installation and Upgrade
  • Access and Permissions
  • Interacting with Insights
  • Troubleshooting
OUT OF SUPPORT
Insights
Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated May 21, 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.
  • Create Backup
  • Restore

Was this page helpful?

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