Frage

I have an Ubuntu server running with DB backups. How to get the backups? I am using a *.pem file to login. I have been trying mail with mailx. I execute the command but without success. I get no error messages

echo "something" | mailx -s "subject" mymail@gmail.com

I am aware of that this is without attachments. How to get this working? With wget do I need a url?

War es hilfreich?

Lösung

I recommend using scp which runs over SSH and thus far more secure than wget. You need to have an SSH server running to do this.

Andere Tipps

The correct usage to get a file to your working directory is

$ scp -i myPem.pem  ubuntu@ec2-77-237-115-112.eu-west-1.compute.amazonaws.com:/home/ubuntu/logo.png .
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top