Manuel:SyncFileBackend.php
Appearance
| Fichier MediaWiki : syncFileBackend.php | |
|---|---|
| Emplacement : | maintenance/ |
| Code source : | master • 1.45.3 • 1.44.5 • 1.43.8 |
| Classes : | SyncFileBackend |
Détails
Le fichier syncFileBackend.php est un script de maintenance qui synchronise deux backends de fichiers selon le journal de plus tard.
Options et arguments
| Option | Description | Obligatoire | Valeur par défaut |
|---|---|---|---|
| --src | Name of backend to sync from | obligatoire | |
| --dst | Name of destination backend to sync | obligatoire | |
| --start | Starting journal ID | optionnel | 0 |
| --end | Ending journal ID | optionnel | INF (infinite) |
| --posdir | Directory to read/record journal positions | optionnel | |
| --posdump | Just dump current journal position into the position dir. | optionnel | |
| --postime | For position dumps, get the ID at this time | optionnel | |
| --backoff | Stop at entries younger than this age (sec) | optionnel | 0 |
| --verbose | Verbose mode | optionnel |
Utilisation
php maintenance/run.php syncFileBackend --src sourceBackend --dst destinationBackend [ --start| --end| --posdir| --posdump| --postime| --backoff| --verbose ]
Terminal
$ php maintenance/run.php syncFileBackend --src local-backend --dst AmazonS3 Synchronizing backend 'local-backend' to 'AmazonS3'... Starting journal position is 0. Doing id 0 to 49... No journal entries found.
Dans la version MediaWiki MediaWiki 1.39 et antérieures, vous devez appeler les scripts de maintenance en utilisant
php maintenance/scriptName.php au lieu de php maintenance/run.php scriptName.