Use additional hard disk space Linux Ubuntu in main drive where apache is located

Asked

Viewed 227 times

1

Good afternoon, you guys, Excuse the question I’m 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. until then everything OK, I have my website inside the apache folder /home/user/website configured everything running pretty, 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 backupGFS folder) via browser I see the files by the link www.meusite.com.br/backupGFS up there 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 partition of the added drive is in another way if I copy the files from the backupGFS to the folder of the added drive is not but visible on the internet. someone knows some way to use additional HD space for the folder or some apache configuration so that the www.meusite.com.br/backupGFS link is on the additional drive. I need help, I can’t think of a solution! Thanks.

1 answer

0

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

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 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.