[tahoe-lafs-trac-stream] [Tahoe-LAFS] #4095: Move off Trac - Initiation
Tahoe-LAFS
trac at tahoe-lafs.org
Thu May 30 09:00:03 UTC 2024
#4095: Move off Trac - Initiation
------------------------------------+-----------------------
Reporter: btlogy | Owner:
Type: task | Status: new
Priority: normal | Milestone: undecided
Component: dev-infrastructure | Version: n/a
Resolution: | Keywords:
Launchpad Bug: |
------------------------------------+-----------------------
Comment (by btlogy):
Wherever the Trac data will end up being moved, here are the notes I've
collected while trying to reproduce the current Trac setup from a hotcopy
to a docker environment:
1. Initiate `trac-admin <project>` then `hotcopy <path>` on the source
2. Remove log directory from the hotcopy `path/log`
3. Purge session from the hotcopy with `trac-admin path` and `session
purge ...`
4. Compact the DB with `sqlit3 path/db/trac.db 'VACUUM;'`
5. Prepare to transfer the curated hotcopy directory with `public_html`
folder and `trac.htdigest` file
6. Checkout https://code.lafs.eval.latfa.net/tahoe-lafs/MoveOffTrac on the
target
7. Transfer and restore Trac hotcopy in `trac/tahoe-lafs` on the target
8. Transfer and restore extra files (living outside of Trac so far) on the
target:
- `trac/public_html`
- `trac/trac.htdigest`
9. Clone the Git repo: `git clone https://github.com/tahoe-lafs/tahoe-
lafs.git trac/repos/tahoe-lafs.git`
10. Create missing folders (e.g.: `trac/thaoe-lafs/log`)
11. Patch `trac/tahoe-lafs/conf/trac.ini`
12. Gain admin access (if needed):
1. `docker-compose run --rm --entrypoint bash trac`
2. `trac-admin tahoe-lafs`
3. `permission add <username_here> admin`
4. `exit` and `exit`
13. Start the local Trac: `docker-compose run --rm trac`
14. Login on http://localhost:8000/tahoe-lafs/login
15. Edit the WikiStart page to replace link: `/~trac/` ->
`../chrome/site/` or transform them as attachment
These steps will likely be improved with more iteration, but they should
help reproducing a workable environment to actually test/start the
migration.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4095#comment:6>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list