Created
August 26, 2013 05:22
-
-
Save gabrielkfr/6338310 to your computer and use it in GitHub Desktop.
Script bash que permite actualizar repositorios locales desde servidores remotos mediante el comando rsync.
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 | |
# Procedimiento de sincronizacion de repositorios previa verificacion de existencia de carpeta. | |
if [ -d /opt/opensuse/12.3/repo/update/ ]; then | |
rsync --times --perms --recursive --links --verbose --progress mirrors.nl.eu.kernel.org::opensuse/update/12.3/ /opt/opensuse/12.3/repo/update/ --delete-after --human-readable --itemize-changes --stats --exclude=x86_64 | |
fi | |
if [ -d /opt/opensuse/12.3/repo/oss/ ]; then | |
rsync --times --perms --recursive --links --verbose --progress mirrors.nl.eu.kernel.org::opensuse/distribution/12.3/repo/oss/ /opt/opensuse/12.3/repo/oss/ --delete-after --human-readable --itemize-changes --stats --exclude=x86_64 | |
fi | |
if [ -d /opt/opensuse/12.3/repo/non-oss/ ]; then | |
rsync --times --perms --recursive --links --verbose --progress mirrors.nl.eu.kernel.org::opensuse/distribution/12.3/repo/non-oss/ /opt/opensuse/12.3/repo/non-oss/ --delete-after --human-readable --itemize-changes --stats --exclude=x86_64 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment