This guide will help you set up and mount an S3 bucket onto your filesystem using third-party software (rclone, s3fs, etc)
Ensure you have already installed third-party software:
Config information before using 3rd software to mount. See rclone.config.example, s3fs-passwd.example, etc.
You need to set some configs in script .sh
to ensure correct bucket information:
- rclone:
bucket=<YOUR_BUCKET>
url=<ENDPOINT_URL>
mount_point=<MOUNT_POINT>
config_file=/etc/rclone.conf
log_file=/var/log/rclone-mount.log
log_level=DEBUG
provider=<YOUR_PROVIDER> # vstorage, s3, etc.
- s3fs:
bucket=<YOUR_BUCKET>
url=<ENDPOINT_URL>
mount_point=<MOUNT_POINT>
config_file=/etc/rclone.conf
log_file=/var/log/s3fs-mount.log
log_level=debug
region=HCM03
Setup systemd mode to ensure that the process was managed by systemd, and easy to manage your service. To do that:
Example for rclone-mount
:
sudo cp rclone/rclone-mount.service /lib/systemd/system/rclone-mount.service
sudo systemctl daemon-reload
sudo systemctl enable rclone-mount --now
Recheck your service with systemctl status rclone-mount
, and check information in log file.
- Ensure your AWS credentials are correct.
- Check for any network issues.
- Verify that the bucket name is correct.