Fork of kahing/goofys, with the main purpose to change the mounted disk space from 1PB to 999TB so nextcloud can recognize it.
build from source with Go 1.10 or later:
export GOPATH=$HOME/go
mkdir -p $HOME/go/src/github.com/dale0525/
cd $HOME/go/src/github.com/dale0525/
git clone https://github.com/dale0525/goofys.git
cd goofys
git submodule init
git submodule update
make build
chmod +x goofys
cp goofys /usr/bin/
$ cat ~/.aws/credentials
[default]
aws_access_key_id = AKID1234567890
aws_secret_access_key = MY-SECRET-KEY
$ $GOPATH/bin/goofys <bucket> <mountpoint>
$ $GOPATH/bin/goofys <bucket:prefix> <mountpoint> # if you only want to mount objects under a prefix
Users can also configure credentials via the
AWS CLI
or the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables.
To mount an S3 bucket on startup, make sure the credential is
configured for root
, and can add this to /etc/fstab
:
goofys#bucket /mnt/mountpoint fuse _netdev,allow_other,--file-mode=0666,--dir-mode=0777 0 0