Skip to content

Instantly share code, notes, and snippets.

@six2dez
Last active June 29, 2021 11:18
Show Gist options
  • Save six2dez/b45243d18d403a3f62ade51ecb3482b5 to your computer and use it in GitHub Desktop.
Save six2dez/b45243d18d403a3f62ade51ecb3482b5 to your computer and use it in GitHub Desktop.
copy useful configuration files to VPS
#!/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