

We will use the docker-compose.yml file to set up the application. NextCloud official images are available on the Docker Hub and we can download/pull the latest images from Docker Hub and use them to configure our setup. Now, we’ll set up the NextCloud Application using Docker-Compose. Step 5 Setup & Configuration of NextCloud using Docker-Compose The domain name or sub-domain name needs to be pointed to the EC2 instance. We can use any domain name that we already have. Make sure we store the access key & secret access key to a safe place. We need to set up an IAM user with appropriate permissions on the S3 Bucket and would require the programmatic access (Access Key & Secret Access Key), this would be required to set up S3 as external storage on NextCloud. We need to create an S3 Bucket for storing our data on S3 securely. The source code with API v1 and v2 is hosted on my GitHub, here.Please check the version of Docker & Docker-Compose TransferData.upload_file(file_from=file_from, file_to=file_to) TransferData = TransferData(access_token)įile_to = '/test_dropbox/test.txt' # The full path to upload the file to, including the file name #files_upload(f, path, mode=WriteMode('add', None), autorename=False, client_modified=None, mute=False)

#!/usr/bin/env pythonĭef upload_file(self, file_from=None, file_to=None): The following source code is given along with API v2 (simpler, more consistent, and more comprehensive).

Compress data, upload to Dropbox, get the shared link and use wget to download data on the server side. I come up with another way to speed up the transfer rate with the help of Dropbox. The most common way to transfer data between clients and servers is to use FTP applications like FileZilla. Transfer data with Dropbox 2.1 Upload files to EC2 I am figuring out how to download data by using Dropbox API. 100% 903MB 339.0KB/s 45:29Īs you can see, the data rate is so slow and it took 45 minutes to transfer 903M. Tar czf $(date +%Y%m%d-%H%M%S).tar.gz / # filename with the current date and time, e.g., Use scp (secure copy) to download data from EC2. Transfer data with scp 1.1 Upload files to EC2 scp -i wp_sparkandshine.pem Download files from EC2
