Transferring files between a local machine and a remote server is a common task in software development, data science, and IT operations. One way to transfer files securely is to use Secure Shell (SSH), a cryptographic network protocol that allows you to access and manage remote systems securely over an unsecured …
Read MoreToday we will see how to migrate all ECR images from one AWS region to another AWS region. First, we will learn come basic. To list the repositories in your AWS Elastic Container Registry (ECR) using the AWS CLI, you can use the following command: 1 2aws ecr describe-repositories This command returns a list of …
Read MoreIn this blog, we will copy last 24 hours files from local windows server to AWS S3. Let's start to achieve this: Note: For this script, we need to install AWS CLI on local Windows machine and we need configure IAM user credentials with S3 get and put object permission. Step 1: Create IAM user and download the access …
Read MoreToday we will write a python code in lambda which will connect with our mongodb Atlas and list all databases. Step 1: Install Dependencies packages in Lambda Layers. 1Package: 21: pymongo 32: dnspython Note: To learn how to add python packages in lambda layers. Use the this [link] …
Read MoreIn this blog, Today we will create a script that will help us to copy latest files from FTP server and paste it to another server (FTP client server) using WinSCP Script. So, lets start the process. Step 1: For this, We first need to install WinSCP on our clinet server. To install WinSCP, Please click on the link. Step …
Read MoreIn this blog, we will create a Powershell script, which will copy latest files from AWS S3 to paste it in local. So, lets start the process. Note: For this script, we need to install AWS CLI on local Windows machine and we need configure IAM user credentials with S3 get and put object permission. Step 1: Create IAM …
Read MoreToday lets configured your powershell script in widows scheduler. Lets start the process: Step 1: Open "Task Scheduler" : Step 2: Click on "Create Task" : Step 3: In general, write "scheduler task Name" and enter "Administrator" user: Step 4: In trigger, enter timing in which you want to run the script: Step 5: In …
Read MoreToday we will create a Powershell Script, which will delete your old files. You can also configure a scheduler which can delete the files automatically. Let's start the scripting: Step 1: Create a variable to get the old date by getting current date and subtracting the retention days: 1$cutoffDate = …
Read More