Use additional HD Linux space Ubuntu on main drive where apache is located

1

Good afternoon, sorry the question is a beginner in linux, I will explain my case. I have an instance of 4 gb ram 80 ssd in google cloud compute engine with ubuntu. so far, ok, I have my website inside the apache folder / home / user / website configured everything running nice, inside the folder of the website / home / user / website / backupGFS I have a backup folder that I need to be available on the internet via browser (some .zip files in the backupGFS folder) via browser I see the files by the link www.meusite.com.br/backupGFS until all OK. now comes the disk space problem (as apache is installed on the ssd drive of 80 my backupGFS folder is filling the disk) so I added but an additional 500 GB HD drive in the instance THE PROBLEM IS THAT THE FOLDER OF the drive partition added this to another path if copying the backupGFS file to the added drive folder is not visible on the internet. does anyone know of any way to use additional HD space for the folder or some apache configuration so that the link www.mysite.com/backupGFS is in the additional drive. I need help, I can not think of a solution! Thanks.

    
asked by anonymous 25.05.2018 / 23:41

1 answer

0

Create a symbolic link within the apache directory that points to your backup directory. After accessing your server via ssh, do the following:

ln -s /caminho_da_unidade_adicional/backupGFS /home/usuario/website/backupGFS

Ensure that the directory containing the backup is readable by Apache, giving read permission to all users:

chmod -R +r /caminho_da_unidade_adicional/backupGFS 
    
26.05.2018 / 06:05