Differences

This shows you the differences between the selected revisions of the page.

2017-11-11 2017-12-21
s3fs: MOUNTPOINT directory /backup is not empty. if you are sure this is safe, can use the 'nonempty' mount option. (73.170.130.58) limit acronym recongnition (martin)
Line 2: Line 2:
If you need to access/manage files stored on Amazon S3 (Simple Storage Service) bucket via SFTP, you can mount the bucket to a file system on a Linux server and access the files using the SFTP as any other files on the server. If you need to access/manage files stored on Amazon S3 (Simple Storage Service) bucket via SFTP, you can mount the bucket to a file system on a Linux server and access the files using the SFTP as any other files on the server.
-This guide shows how to mount the S3 bucket using ''[[https://github.com/s3fs-fuse/s3fs-fuse|s3fs]]'' file system to an Amazon EC2 server and access it using WinSCP.+This guide shows how to mount the %%S3%% bucket using ''[[https://github.com/s3fs-fuse/s3fs-fuse|s3fs]]'' file system to an Amazon EC2 server and access it using WinSCP.
===== Creating Access Server ===== ===== Creating Access Server =====
Line 20: Line 20:
  * Switch to ''root'': \\ ''sudo su''   * Switch to ''root'': \\ ''sudo su''
-  * Store security credentials that will be used to access the S3 bucket to ''/etc/passwd-s3fs'': \\ ''echo <access-key-id>:<secret-access-key> > /etc/passwd-s3fs'' \\ ''chmod 600 /etc/passwd-s3fs'' \\  (Replace the ''<access-key-id>'' and ''<secret-access-key>'' with the actual values)+  * Store security credentials that will be used to access the %%S3%% bucket to ''/etc/passwd-s3fs'': \\ ''echo <access-key-id>:<secret-access-key> > /etc/passwd-s3fs'' \\ ''chmod 600 /etc/passwd-s3fs'' \\  (Replace the ''<access-key-id>'' and ''<secret-access-key>'' with the actual values)
  * Create mount point (example): \\ ''mkdir /mnt/<bucket>''   * Create mount point (example): \\ ''mkdir /mnt/<bucket>''
  * Add entry to ''[[&man_ref(5,fstab)|fstab]]'' to mount the bucket: \\ ''echo s3fs#<bucket> /mnt/<bucket> fuse _netdev,rw,nosuid,nodev,allow_other,nonempty 0 0 %%>>%% /etc/fstab'' \\ (Replace the leading ''<bucket>'' with your bucket name and the ''/mnt/<bucket>'' with the mount point)   * Add entry to ''[[&man_ref(5,fstab)|fstab]]'' to mount the bucket: \\ ''echo s3fs#<bucket> /mnt/<bucket> fuse _netdev,rw,nosuid,nodev,allow_other,nonempty 0 0 %%>>%% /etc/fstab'' \\ (Replace the leading ''<bucket>'' with your bucket name and the ''/mnt/<bucket>'' with the mount point)

Last modified: by martin