Skip to end of metadata
Go to start of metadata
My Fedora repository is very big and a complete rebuild would take too long. How can I back up my repository so that I don't have to rebuild it?
When performing a complete backup, several steps are involved:
- Copy disable-writes.xml (see below) into $FEDORA_HOME/data/fedora-xacml-policies/repository-policies/default
- Run $FEDORA_HOME/server/bin/fedora-reload-policies.sh reloadpolicies https admin-user admin-pass (this immediately makes any repo-wide policy changes active without requiring a restart; change https to http if your server only supports http)
- Wait a few minutes to let any in-progress writes complete.
- Do a database+filesystem backup (see this page for the files involved)
- Remove disable-writes.xml
- Run fedora-reload-policies again
This could be scripted as part of a regular backup process. Step 3 is not perfect, however: if you wait 5 minutes but someone is in the middle of upload a multi-GB file to the repository, you might still get an inconsistent backup. You could also watch the low level system activity (thread dump, strace, lsof, etc) to see if there are any ongoing writes.
<?xml version="1.0" encoding="UTF-8"?>
<Rule RuleId="1" Effect="Deny"/>
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))