Skip to content

Move backups to a different directory

orphan

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.

Move backups out of the Devilbox git directory

All you have to do is to adjust the path of env-host-path-backupdir in the .env file.

Terminal window
# 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 env-host-path-backupdir

Terminal window
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/.