Backup external server data to AWS over SSH
Hello everybody,
I run an server outside of AWS which can be accessed over SSH.
I don't want to do backups from the server to AWS. It should work the opposite.
How can I run a serverless tool in aws, which is daily connecting to the server and copy all data to a cheap AWS storage. Is there something build in or do I have to build something on my own with Lambda? and S3 Glacier? (Or how would you do this?
Thank you
While there is AWS Transfer for SFTP, it provides an SFTP server (and cannot login to existing SSH/SFTP servers).
So for your use case, the most serverless option is probably to create a (via EventBridge periodically executed) CodeBuild job which either
- mounts an EFS (with infrequent access) volume
- and then calls (in the buildspec)
rsync/scp myserver.com:/what/to/backup /efsmountpoint
or - another possibility without EFS, but with S3 (and thus Glacier storage tier possible):
- Create an AWS Transfer SFTP Server
- calls (in the buildspec)
rsync/scp myserver.com:/what/to/backup awstransferendpoint:/
You might also be able to remove the AWS Transfer SFTP step by directly mounting the S3 bucket in the CodeBuild job with s3fs-fuse.
Cheers
Relevant questions
Copying data from sql server to snowflake with AWS GLUE
asked a month agoDHCP server over VPN instance
asked 5 months agoRDS SQL Server backup options
Accepted AnswerHow to establish connection between AWS Fargate task to an external SFTP server?
asked 2 months agoVery Large ASYNC_NETWORK_IO on SQL Server when migrating data from SQL Server EC2 to Aurora Postgres using DMS
asked 6 months agoBackup external server data to AWS over SSH
asked 25 days agoHow to best migrate to AWS from a live dedicated server at Ntirety.com but which registrar is different?
asked 15 days agoDNS Lookup Fail with Amazon DNS Server
asked 3 years agoConnectivity to external SMTP server
Accepted Answerasked 3 years agoWhat services should I use if I want to do live monitoring the data?
asked 3 years ago
I am new to aws and wondering why you choose buildspec to do this. Why not a lambda python script. Is there a specific reason?