This script uses the binary called s3 which is included in the NAS EX4100 firmware. Don't use if you don't have this binary file.
-
Copy the files nastos3.py and file.conf to a directory in your NAS.
-
Config file file.conf with your parameters. Here is a description:
- bucket: The name of the bucket where you want upload the folder.
- access_key: Your access key for the bucket.
- secret_key: Your secret key for the bucket.
- remote_path: To upload files inside a folder. If empty the upload process begin in the root of the bucket. Do not add slash at the beggining. Example: example/
- origin_path: Origin path of the folder that you want upload. Do not add the final slash. Example: my/folder/that/i/want/upload
-
Start the script with this command:
python nastos3.py -i file.conf -l /path/to/log/mylog.log
where:
-i : Name of the .conf file. -l : Path to the log file. Can be only the name of the log, in which case the log file are stored in the actual folder.
-
And that is all.