Apache files to SSD

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Apache files to SSD

Post by Burgess85 »

How can I move my Apache files to run off the imernal SSD please? Is this possible?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Apache files to SSD

Post by Joulinar »

which files you are looking for? Web server root /var/www or some application files?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Apache files to SSD

Post by Burgess85 »

Joulinar wrote: Wed Aug 04, 2021 11:56 pm which files you are looking for? Web server root /var/www or some application files?
Web server root /var/www
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Apache files to SSD

Post by Joulinar »

well you could transfer entire rootFS to the HDD but this require an empty disk.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Apache files to SSD

Post by Burgess85 »

Joulinar wrote: Fri Aug 06, 2021 12:03 am well you could transfer entire rootFS to the HDD but this require an empty disk.
How do I do that please?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Apache files to SSD

Post by Joulinar »

Using drive manager
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Apache files to SSD

Post by Burgess85 »

Joulinar wrote: Fri Aug 06, 2021 10:49 am Using drive manager
Currently got dietpi userdate on the HDD will transfer rootfs muck anything up?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Apache files to SSD

Post by Joulinar »

Transferring RootFS will format your HDD. Means, you would need to transfer user data directory back to SD card first. But not sure if this is possible as user data might be bigger than your SD card. But if size fits, copy everything like user data back and transfer whole rootFS afterwards. This will include user data at the end as well.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Apache files to SSD

Post by Burgess85 »

Joulinar wrote: Fri Aug 06, 2021 8:46 pm Transferring RootFS will format your HDD. Means, you would need to transfer user data directory back to SD card first. But not sure if this is possible as user data might be bigger than your SD card. But if size fits, copy everything like user data back and transfer whole rootFS afterwards. This will include user data at the end as well.
Back to ext4 on SD card?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Apache files to SSD

Post by Joulinar »

yes, but you would need to check if the amount of data fits before hand.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply