- 1 Minute to read
- Print
- DarkLight
- PDF
How to Mirror
- 1 Minute to read
- Print
- DarkLight
- PDF
You may be interested in mirroring your repository from an external repo to an AllSpice Hub repo or the other way around, from an AllSpice Hub repo to an external repo. Either way, we'll show you how.
Add push mirror from AllSpice to external hosting
Visit your repository. Click on the "Settings" tab and select the "repository" sub category
Scroll to the mirror settings section.
Fill out the git remote repository url.
Fill out the Authorization Username and Password. You may have to use an authorization token instead of a password. See your host for more details.
Fill out the Mirror Interval time, 8h1m10sec will set the interval to 8 hours, 1 minute, and 10 seconds. Set this to 0 to disable automatic sync.
Click the "Add Push Mirror" button to add the push location.
After the mirror has been set up, you can manually trigger a mirror by clicking on the "Synchronize Now" button.
Add pull mirror from external hosting to AllSpice
Click on the "+" button in the upper right corner of the menu (next to your user avatar button). Select New Migration.
Select the git host. If you are not using one of the listed providers, use the generic git option to migrate a repository from any git service.
Fill out the source repo name, your username and password for the service.
Click on "this repository will be a mirror".
Fill out the rest of the dialog and click the "Migrate Repository" button.
Your repo should now be a mirrored from the remote host. You can check in Settings->Repository->Mirror settings
API Mirroring
We have a few API calls to configure and execute mirroring.
Mirror Sync
Get push mirrors
Add push mirrors
Sync push mirrors
Get push mirror by name
Delete push mirror