.. _backup-restore: 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. .. rubric:: In this section: .. contents:: :local: .. _back-up-findface-multi: Back up FindFace Multi --------------------------- To back up your FindFace Multi instance and its data, run the following commands: .. code:: 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: Recover FindFace Multi and Its Data --------------------------------------- To restore FindFace Multi and its data from the backup, do the following: #. Download the installer file ``findface-*.run``. #. Put the ``.run`` file into some directory on the designated host (for example, ``/home/username``). #. From this directory, make the ``.run`` file executable. .. note:: Be sure to specify the actual file name instead of ``findface-*``. .. code:: chmod +x findface-*.run #. Execute the ``.run`` file. .. code:: sudo ./findface-*.run #. Go through the installation process as described :ref:`here `. #. After you have finished the installation, to restore FindFace Multi, its data and configuration files, stop all FindFace Multi containers. .. code:: cd /opt/findface-multi sudo docker-compose stop #. Remove new configuration files and data generated and created by the installer and restore them from the backup. .. code:: 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/ #. Restart FindFace Multi containers. .. code:: cd /opt/findface-multi sudo docker-compose up -d