Last active
June 29, 2021 11:18
-
-
Save six2dez/b45243d18d403a3f62ade51ecb3482b5 to your computer and use it in GitHub Desktop.
copy useful configuration files to VPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copying configurations to VPS | |
# ./copyconfig.sh X.X.X.X | |
rsync -vr ~/Tools/authorized_keys root@$1:/root/.ssh/authorized_keys | |
ssh root@$1 'mkdir -p /root/.config/amass/ /root/Tools/ /root/.config/subfinder/ /root/.config/notify/' | |
rsync -vr ~/.config/amass/config.ini root@$1:/root/.config/amass/config.ini | |
rsync -vr ~/Tools/h8mail_config.ini root@$1:/root/Tools/h8mail_config.ini | |
rsync -vr ~/.config/subfinder/config.yaml root@$1:/root/.config/subfinder/config.yaml | |
rsync -vr ~/Tools/.github_tokens root@$1:/root/Tools/.github_tokens | |
rsync -vr ~/.config/notify/notify.conf root@$1:/root/.config/notify/notify.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment