UiPath Documentation
insights
2021.10
false
Insights
  • Release Notes
    • 2021.10.0
      • 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

Backup and Restore

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

Create Backup

  1. Run PowerShell as Administrator.

    powershell
    powershell
    
  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.

    exit
    exit
    

Restore

  1. Run PowerShell as Administrator.

    powershell
    powershell
    
  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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated