Skip to content

Instantly share code, notes, and snippets.

@martip07
Last active December 25, 2015 18:09
Show Gist options
  • Save martip07/ad9ba33afed1404c4bb5 to your computer and use it in GitHub Desktop.
Save martip07/ad9ba33afed1404c4bb5 to your computer and use it in GitHub Desktop.
Script para sincronizar archivos en diferentes servidores
#!/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