SolNet
News Kontakt Webmail

FAQ

Frage:
Wie richte ich SolNet S3 Backup ein?

Antwort:
Befolgen Sie für die "SolNet S3 Backup"-Einrichtung folgende Anleitung:
Anleitung: SolNet S3 Backup
Konfiguration: SolNet S3 XML Datei

Auf der Kommandozeile kann s3cmd genutzt werden.
Hier ein Beispiel zur Einrichtung unter Ubuntu Linux, angepasste Werte fett dargestellt:

1. s3cmd Installieren:
user@host:~# apt install s3cmd

2. Konfigurations-Assistent starten:
user@host:~# s3cmd --configure

Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.

Access key and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables.
Access Key: myAccessKey
Secret Key: mySecretKey
Default Region [US]: EU

Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.
S3 Endpoint [s3.amazonaws.com]: s3.solnet.ch

Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used
if the target S3 system supports dns based buckets.
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: %(bucket)s.s3.solnet.ch

Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password: myEncryptionPassword
Path to GPG program [/usr/bin/gpg]:

When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP, and can only be proxied with Python 2.7 or newer
Use HTTPS protocol [Yes]:

On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't connect to S3 directly
HTTP Proxy server name:

New settings:
Access Key: myAccessKey
Secret Key: mySecretKey
Default Region: EU
S3 Endpoint: s3.solnet.ch
DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.s3.solnet.ch
Encryption password: myEncryptionPassword
Path to GPG program: /usr/bin/gpg
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0

Test access with supplied credentials? [Y/n] y
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)

Now verifying that encryption works...
Success. Encryption and decryption worked fine :-)

Save settings? [y/N] y

3. Die Konfiguration wird im Homeverzechnis des jeweiligen Users gespeichert: "~/.s3cfg"
Bei einer Neueinrichtung kann diese einfach gelöscht und mit obigem Konfigurations-Assistenten neu erstellt werden.
Die Datei kann auch mit einem beliebigen Texteditor angepasst werden sollte man was falsch eingetragen haben.

4. Auflisten der Dateien: s3cmd la (Buckets mit s3cmd ls)
5. Hochladen: s3cmd put FILE [FILE...] s3://BUCKET[/PREFIX]
6. Runterladen: s3cmd get s3://BUCKET/OBJECT LOCAL_FILE
7. Löschen: s3cmd rm s3://BUCKET/OBJECT

Mit "s3cmd" wird die Hilfe aufgerufen.

Zurück zur Übersicht