Skip to content

Instantly share code, notes, and snippets.

@gusugusu1018
Created July 1, 2020 00:33
Show Gist options
  • Save gusugusu1018/21053e3fdd3f0cb96dc17b0284c7d47f to your computer and use it in GitHub Desktop.
Save gusugusu1018/21053e3fdd3f0cb96dc17b0284c7d47f to your computer and use it in GitHub Desktop.
#!/bin/bash
for node in worker1 worker2; do
echo =================== $node =====================
scp /opt/hoge/* $node:/opt/hoge/;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment