- Newest
- Most votes
- Most comments
Hi,
You can use 2 commands via CLI to copy this file:
- aws s3 cp: https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html
- aws s3 sync: https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
Sync may become more interesting in the future for you when you have directories with lots of files and you don't know which ones were added since your last sync:
Syncs directories and S3 prefixes. Recursively copies new and updated files from the source directory to the destination. Only creates folders in the destination if they contain one or more files.
To obtain best performances, have a look at https://repost.aws/knowledge-center/s3-improve-transfer-sync-command
Best,
Didier
Hi Sam,
You could use AWS DataSync to copy your DB Backup file.
https://aws.amazon.com/blogs/storage/synchronizing-your-data-to-amazon-s3-using-aws-datasync/
Hello.
If you simply want to copy files from on-premises to S3, you can do so using the AWS CLI.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html
aws s3 cp ./database-file-name s3://s3-name
If the volume or size of files is large, AWS DataSync may be used to move them faster.
https://docs.aws.amazon.com/datasync/latest/userguide/s3-cross-account-transfer.html
I dont think the AWS CLI is installed on the LINUX server. I doubt they would install too. Is not there a way to use the Linux OS scp or cp linux command directly?
Thanks for the reply. In that case, how about using the AWS Transfer Family to allow SFTP to S3? The AWS Transfer Family makes it possible to upload files to S3 using SFTP. https://repost.aws/knowledge-center/aws-sftp-endpoint-type https://docs.aws.amazon.com/transfer/latest/userguide/what-is-aws-transfer-family.html
It is not clear if it is available via DirectConnect, but it may be possible to mount S3. https://aws.amazon.com/jp/blogs/aws/mountpoint-for-amazon-s3-generally-available-and-ready-for-production-workloads/
Does Mountpoint require a new software install on Linux server? This might be an issue because it has to go through security for approval and install.
To mount S3, the package must be installed. If this is difficult, upload files via SFTP using the AWS Transfer Family mentioned above.
Relevant content
- asked 10 months ago
- Accepted Answerasked 3 years ago
- asked 2 years ago
- asked a year ago
- How do I restore a KMS-encrypted back up file to RDS for SQL Server from an on-premises environment?AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 6 months ago
I dont think the AWS CLI is installed on the LINUX server. I doubt they would install too. Is not there a way to use the Linux OS built-in commands like scp or cp directly?