forked from 9652040795/aws-policies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths3-mount
61 lines (27 loc) · 1.15 KB
/
s3-mount
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Dependency Installed:
yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -y
s3fs-fuse Location: git clone https://github.com/s3fs-fuse/s3fs-fuse
cd s3fs-fuse
./autogen.sh
./configure --prefix=/usr --with-openssl
make
make install
which s3fs
/bin/s3fs
vim /etc/passwd-s3fs
accesskey:secret
# For the security of /etc/passwd-s3fs ---> file change the permissions of it.
chmod 640 /etc/passwd-s3fs
s3fs s3_bucket_name -o use_cache=/temp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=5 /directory_name
#For make it persistent
which s3fs
/bin/s3fs
vim /etc/rc.local
/bin/s3fs s3_bucket_name -o use_cache=/temp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=5 /directory_name
### Some Use Links with regard to the rsync and cron job ###
https://www.youtube.com/watch?v=qE77MbDnljA
https://www.youtube.com/watch?v=QZJ1drMQz1A
https://dev-notes.eu/2015/10/backup-rsync-between-devices/
https://linuxhint.com/run_cron_job_every_minute/
### END ###
#Note: Instead of mounting I recommend use the VPC Gateway for S3# all is internal network of AWS, with out using Internet.