From 216c660cd1a1fcbd189880548c33f7846542698e Mon Sep 17 00:00:00 2001 From: Isaac Hill Date: Sun, 3 Nov 2024 17:01:51 -0800 Subject: Use bash variable rather than optional argument for ssh key path --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 9231797..e5a69de 100644 --- a/readme.md +++ b/readme.md @@ -69,6 +69,12 @@ Use the automation in `util/upload-save.bash` to upload your save file to your s bash util/upload-save.bash ~/path/to/my/save.zip $your_ec2_ip_or_remote_name ``` +Optionally, you can specify a path to a private key with a bash variable rather than relying on default ssh keys. + +``` bash +FACTORIO_PEM=~/path/to/my.pem bash util/upload-save.bash ~/path/to/my/save.zip $your_ec2_ip_or_remote_name +``` + This is just an automated implementation of the slower version below. ##### Fast save download (Recommended) @@ -79,6 +85,12 @@ Use the automation in `util/download-latest-save.bash` to download the latest (m bash util/download-latest-save.bash $your_ec2_ip_or_remote_name ``` +Optionally, you can specify a path to a private key with a bash variable rather than relying on default ssh keys. + +``` bash +FACTORIO_PEM=~/path/to/my.pem bash util/download-latest-save.bash $your_ec2_ip_or_remote_name +``` + Your server needs to be running for this to work and it should download your latest save to your local directory. ##### Manual upload process (for understanding the system) -- cgit v1.2.3