Back Up and Recover FindFace Multi and Its Data

You can back up FindFace Multi before uninstalling it to recover the product and its data later on.

In this section:

Back up FindFace Multi

To back up your FindFace Multi instance and its data, run the following commands:

sudo tar -cvzf ~/configs.tar.gz -C /opt/findface-multi/ configs
sudo tar -cvzf ~/data.tar.gz -C /opt/findface-multi/ data

Recover FindFace Multi and Its Data

To restore FindFace Multi and its data from the backup, do the following:

  1. Download the installer file findface-*.run.

  2. Put the .run file into some directory on the designated host (for example, /home/username).

  3. From this directory, make the .run file executable.

    Note

    Be sure to specify the actual file name instead of findface-*.

    chmod +x findface-*.run
    
  4. Execute the .run file.

    sudo ./findface-*.run
    
  5. Go through the installation process as described here.

  6. After you have finished the installation, to restore FindFace Multi, its data and configuration files, stop all FindFace Multi containers.

    cd /opt/findface-multi
    sudo docker-compose stop
    
  7. Remove new configuration files and data generated and created by the installer and restore them from the backup.

    sudo rm -r /opt/findface-multi/configs/*
    sudo tar -xvf ~/configs.tar.gz -C /opt/findface-multi/
    sudo rm -r /opt/findface-multi/data/*
    sudo tar -xvf ~/data.tar.gz -C /opt/findface-multi/
    
  8. Restart FindFace Multi containers.

    cd /opt/findface-multi
    sudo docker-compose up -d