View Ticket
Not logged in
Ticket UUID: 3b1533a090eebd09da7121ab3fc9e3f6a7fbd6f5
Title: 'sync' command in the web-interface
Status: Open Type: Feature_Request
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2010-04-22 18:27:49
Version Found In: f969b6cdde
Description & Comments:
Having two fossil servers (cgi), one clone of another. How to sync them, if there no command line access? 'Sync now' button wanted in the admin section.

ron added on 2010-01-27 07:52:35:
Fixed with checkin [fc23960258211b5bc752a82c429d5fb3f3286b67]


drh added on 2010-04-22 15:19:43:
The change above was incorrect and has been removed. This feature request is now reopened.


anonymous added on 2010-04-22 18:27:49:
Until such time as there is a web ui for this, you can sync them from a remote machine with push/pull commands. Assuming that URL1 and URL2 represent the two remote machines, you would do the following:

fossil clone URL1 syncup.fossil
fossil pull URL2 -R syncup.fossil
# More pulls from other repositories here if more than 2
fossil push URL1 -R syncup.fossil
fossil push URL2 -R syncup.fossil
# More pushes to other repositories here if more than 2
rm syncup.fossil

Not much additional network traffic except for the first clone and if the syncup.fossil repository is kept around between syncs instead of rming it (subsequently pulling from URL1 rather than cloning from URL1) network traffic really won't be all that large. (Of course suitable users and passwords with appropriate clone/pull/push privileges will have to be used.)