mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-14 14:42:28 +00:00
41 lines
1.1 KiB
ReStructuredText
41 lines
1.1 KiB
ReStructuredText
:orphan:
|
|
|
|
.. include:: /_includes/snippets/__ANNOUNCEMENTS__.rst
|
|
|
|
.. _howto_move_backups_to_a_different_directory:
|
|
|
|
*************************************
|
|
Move backups to a different directory
|
|
*************************************
|
|
|
|
No matter if your backups are already in a different location or if you want to move them out of
|
|
the Devilbox git directory now, you can do that in a few simple steps.
|
|
|
|
**Table of Contents**
|
|
|
|
.. contents:: :local:
|
|
|
|
Move backups out of the Devilbox git directory
|
|
==============================================
|
|
|
|
All you have to do is to adjust the path of :ref:`env_host_path_backupdir` in the ``.env`` file.
|
|
|
|
.. code-block:: bash
|
|
|
|
# Navigate to Devilbox git directory
|
|
host> cd path/to/devilbox
|
|
|
|
# Open the .env file with your favourite editor
|
|
host> vim .env
|
|
|
|
Now Adjust the value of :ref:`env_host_path_backupdir`
|
|
|
|
.. code-block:: bash
|
|
:caption: .env
|
|
:emphasize-lines: 1
|
|
|
|
HOST_PATH_HTTPD_DATADIR=/home/user/backups/devilbox/
|
|
|
|
That's it, whenever you start up the Devilbox, ``/home/user/backups/devilbox/`` will be mounted into
|
|
the PHP container into ``/shared/backups/``.
|