Last active
December 25, 2015 18:09
-
-
Save martip07/ad9ba33afed1404c4bb5 to your computer and use it in GitHub Desktop.
Script para sincronizar archivos en diferentes servidores
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 | |
backend_list=/usr/scripts/servidores.list | |
cat $backend_list | while read backend; | |
do | |
rsync -avz /my/file/location/file.txt root@$backend:/my/servers/location/file.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment