From Fedora Project Wiki
(Imported from MoinMoin)
m (1 revision(s))

Latest revision as of 16:29, 24 May 2008

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/