Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.25 KB

NasMyCloudToS3

Python script to upload files and folders to Amazon S3 from NAS my Cloud EX4100 (Western Digital).

Advise

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.

Instructions
  1. Copy the files nastos3.py and file.conf to a directory in your NAS.

  2. 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
  3. 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.
    
  4. And that is all.