- install s3ql
sudo apt-get update
sudo apt-get install python3 libfuse-dev python3-pip python3-llfuse libsqlite3-dev
python3 -m pip install dugong defusedxml apsw
re-execute the latter as root also:
root@s3ql:~# python3 -m pip install dugong defusedxml apsw
then proceed to install
wget https://bitbucket.org/nikratio/s3ql/downloads/s3ql-2.29.tar.bz2
tar -jxvf s3ql-2.29.tar.bz2
cd s3ql-2.29
sudo python3 ./setup.py install
- place the file with auth codes in:
-rw------- 1 root root 142 Aug 23 11:47 ~/.s3ql/authinfo2
Remember to setup permission also
sudo chmod 600 ~/.s3ql/authinfo2
This is the content of the file authinfo2
:
[s3c]
storage-url: s3c://
backend-login: WwQ+******Cdx9n
backend-password: CyA****Mr4yC
NB. S3 entries are available on the space web interface in S3 section.
- once you prepare the environment you can format the bucket:
sudo mkfs.s3ql --force --backend-option no-ssl --plain --max-obj-size 10240 s3c://s3.yourdomain.it/bkt6
note: where bkt6 is your bucket.
- in order to mount the bucket you have to launch the following:
sudo mount.s3ql --backend-option no-ssl,tcp-timeout=120 --compress none s3c://s3.yourdomain.it/bkt6/ /mnt/spaceshare/ --allow-other --threads=30 --cachesize=1000000
note: the above line supposes to have an already created mountpoint dir: /mnt/spaceshare/
that has to belong to the right user (e.g. TSM tsminst1 tsmsrvrs)