Files
MarkdownNotes/howto - Linode S3 Object Storage.md
chawley 65c434952a Catagorized Notes
Renamed notes to fit categories and be easier to find later: blog, config, howto
2023-04-28 10:31:11 -04:00

41 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Linode S3 Object Storage
_Linodes Object Storage is a globally-available, S3-compatible method for storing and accessing data. Object Storage differs from traditional hierarchical data storage, such as a traditional file system on a physical/virtual disk and Block Storage Volumes. Under Object Storage, files (also called objects) are stored in flat data structures (referred to as buckets) alongside their own rich metadata. - [https://www.linode.com/docs/products/storage/object-storage](https://www.linode.com/docs/products/storage/object-storage)_
Example Bucket Name: planethawleywood
# Install and Configure s3fs
```
sudo apt install s3fs
sudo echo "ACCESSCODE:SECRETKEY" > /etc/passwd-s3fs
sudo chmod 600 /etc/passwd-s3fs
mkdir /mnt/data/planethawleywood-os
```
# Mount Linode S3
## Mount from command line
```
s3fs planethawleywood /mnt/data/planethawleywood-os -o passwd_file=$HOME/.s3fs-creds -o url=https://us-east-1.linodeobjects.com -o use_path_request_style
```
## Mount from /etc/fstab
Add this line:
```
planethawleywood /mnt/data/planethawleywood-os fuse.s3fs _netdev,allow_other,use_path_request_style,use_cache=/tmp,url=https://us-east-1.linodeobjects.com 0 0
```