Using S3 Storage to extend Direct Admin storage

mediumfriedchips

Verified User
Joined
Oct 23, 2020
Messages
21
So I have been experimenting to see if I can extend direct admin storage by using S3 storage and the answer is yes.

So I managed to mount idrive S3 storage using s3fs and it worked

Then i decided to go further and see if i could actually use it as a home directory for DA and move the user files there but i was stuck with the problem with changing the permissions as s3fs might not (I'm not sure) fully support Unix-like permissions because S3 is an object storage service rather than a file system with native support for POSIX permissions.

So here is what i am, trying to do , this whole point is just for authentication and monitoring i have a bunch of servers and some of them can not back up directly to S3 storage as direct admin is still working on a solution.

So i was hoping that with this , i can mount the storage on a DA backup server , create users and then use those users to send data from another DA server to back up but using FTP from that DA server then the backup server does the whole FTP to S3 since data sent to it will be automatically saved to S3 . And also DA has data monitoring so i could be able to measure bandwidth and data storage quotas from that server.

Anyone with an idea on how i can win this ?

Or am i approaching this the wrong way ?
 
Server DA1 -> FTP Backup to Server Backup.
Server DA1: use hook :all_backups_post.sh -> Send notify "serverDA1.${date}.ready" to Server Backup.

"Server Backup" loop check the notify, if there have all ready server on current date like "serverDA{XX}.${date}.ready" and execute s3 backup system.

"Server Backup" marks current date already have finish, and do not running again.



p.s. about "notify", just create your own logic.
 
I'm still stuck on the permissions issue , I can't get direct admin to create the home directories on the /home2 mount point I created
 
I don't understand your problem " I can't get direct admin to create the home directories on the /home2 ".

directadmin only create user home Dir.

home2, you must create by yourself, and atleast "root" should do read/write inside directory.


permission of "/home2" Dir must same as "/home".
 
Back
Top