Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
syncing_pihole_bash [2022/01/22 00:24] warmachine created |
syncing_pihole_bash [2022/01/22 00:30] (current) warmachine |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| You can automate this with cron if you like, but I like to run it manually after any dns updates\\ | You can automate this with cron if you like, but I like to run it manually after any dns updates\\ | ||
| + | |||
| + | You will need 3 files, although 2 are just some ascii art to indicate when the script starts and finishes. paste these into your 3 files (dnsreplicate.sh, | ||
| + | |||
| + | sshpass is a pre-requisite for this setup. if you do not have it, install it with your linux package manager. you may also need to setup some sudo permissions to each server, since the script is basically sshing from one server to the other and copying files. | ||
| < | < | ||
| #!/bin/bash | #!/bin/bash | ||
| cat banner.txt | cat banner.txt | ||
| - | sshpass -f '/ | + | sshpass -f '/ |
| - | sshpass -f '/ | + | sshpass -f '/ |
| - | sshpass -f '/ | + | sshpass -f '/ |
| echo " | echo " | ||
| echo " | echo " | ||
Last modified: le 2022/01/22 00:24
