From Fedora Project Wiki

< Extras

Revision as of 14:13, 24 May 2008 by ImportUser (talk) (Imported from MoinMoin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sample Mirror Script

This page contains a very simple sample mirror script. You may want to use this more complex mirror script instead.

You will need to edit the following script so that it uses your local paths. It uses a lockfile to prevent subsequent runs of the script from trampling on an existing run.


if [ -f $LOCKFILE ] ; then
echo "fedora-mirror.lock exists, aborting..."
exit 1

rsync -auv --delete --exclude /path/to/local/fedora/basedirectory/