Skip to content

Python script to upload folders to Amazon S3 from NAS EX4100 (Western Digital)

License

Notifications You must be signed in to change notification settings

archibaldodlc/NasMyCloudToS3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python script to upload folders to Amazon S3 from NAS EX4100 (Western Digital)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages