Where are my files, logs and backups stored?
Your files, logs and backups are all stored in a separate location on your Cloud Container server away from where your containers are located. This allows you to easily swap out and update the images that your containers use.
Upon logging into a SSH user you will see a 'containers' symbolic link within your home directory. This will contain directories for each of the containers that you have assigned to this SSH user.
The following directories can be present for a container:
Place the files of your application within this directory and they will be made available to the software running in your container. For web containers, this directory will also contain a 'public' directory with this being the web root for your application.
Any backups that are made of your container or the databases that are linked to it, will be placed within this directory. If your container has not had any backups taken, this directory may not yet be present. Additionally, you may also see a 'migration' directory appear here when your container has been migrated or updated to a new image.
All configuration files related to the software running inside your container can be found here. For example, if your container is running a web server such as Nginx or Apache, the configuration files for these will be placed under a 'nginx' or 'apache2' directory respectively. Optionally, this directory can be marked as readonly to prevent changes from being made to configuration files. For more information on this, please see our SSH user privileges article.
Custom cron entries can be placed within the 'crontab' file that resides in this directory. For more information, please see our article on setting up a custom crontab.
Logs for each piece of software running within your container will be recorded here.