centos_local_repo_rsync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| centos_local_repo_rsync [2011/07/15 20:39] – jt | centos_local_repo_rsync [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | # name: centos-rsync | ||
| - | # date: 20110711 | ||
| - | # author: jason thomas < | ||
| - | # purpose: update local centos mirror with remote centos mirror | ||
| - | |||
| - | LOCK="/ | ||
| - | REPO="/ | ||
| - | MIRROR=" | ||
| - | |||
| - | CURRENT5=" | ||
| - | CURRENT6=" | ||
| - | |||
| - | |||
| - | sync_repo(){ | ||
| - | ( flock 200 | ||
| - | if [ -d $REPO/$@ ] ; then | ||
| - | | ||
| - | fi | ||
| - | ) 200> | ||
| - | } | ||
| - | |||
| - | sync_repo $CURRENT5 & | ||
| - | sync_repo $CURRENT6 & | ||
| - | </ | ||
centos_local_repo_rsync.1310762387.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
