Make repo public and clean backups #6

Open
opened 2022-01-22 09:08:24 +00:00 by jon_nfc · 27 comments
jon_nfc commented 2022-01-22 09:08:24 +00:00 (Migrated from gitlab.com)

📚 Summary

Open up the repo so it's public.

To do so the old website backups need to be moved to a new repo website-pre-2022. This repo can contain the full backups of the pre migrated website. They must be encrypted.

To do so the following needs to happen.

All of the history before adding the new website structure needs to be moved to the backup repo.

the custom modules blog and tags needs to be placed in it's own project.

Workflow for this repo and to migrate the changes:

  1. Create a new branch from commit (the new data)

    git branch clean-git-history b58a76134c8ad8da778756ad1c7e052aa057feb0

  2. Confirm none of the old git history is included

  3. Push the master and dev to the new repo

  4. Delete the master and dev branches

  5. Create an empty master branch

  6. Create a new empty development branch

  7. Merge the clean branch into development

  8. Force push new master and dev branches to this repo

  9. Merge development into master (should already be a MR open.

Tasks

  • test works if not figure out a new workflow

  • new repo created https://gitlab.com/nofusscomputing/infrastructure/website-pre-2022

  • customizations that have to be moved

    • blog has been made it's own project

    • the tags plugin made into its own project

  • found a licence that is open but for non commercial use

  • mark issues as confidential that referenced any of the commits to be removed

  • if repository cleanup does not remove git commits that no longer exist from merge requests, delete the merge requests

## :books: Summary Open up the repo so it's public. To do so the old website backups need to be moved to a new repo `website-pre-2022`. This repo can contain the full backups of the pre migrated website. They must be encrypted. To do so the following needs to happen. All of the history before adding the new website structure needs to be moved to the backup repo. **the custom modules blog and tags needs to be placed in it's own project.** Workflow for this repo and to migrate the changes: 1. Create a new branch from commit _(the new data)_ > `git branch clean-git-history b58a76134c8ad8da778756ad1c7e052aa057feb0 ` 1. Confirm none of the old git history is included 1. Push the master and dev to the new repo 1. Delete the master and dev branches 1. Create an empty master branch 1. Create a new empty development branch 1. Merge the clean branch into development 1. Force push new master and dev branches to this repo 1. Merge development into master (should already be a MR open. ### :link: References - current wiki added to repo in commit [6c99f01ef4e4293e03293b52be3f290d3fc1f957](6c99f01ef4e4293e03293b52be3f290d3fc1f957) - new clean repo from [b58a76134c8ad8da778756ad1c7e052aa057feb0](b58a76134c8ad8da778756ad1c7e052aa057feb0) - new archive repo have all history after [6c99f01ef4e4293e03293b52be3f290d3fc1f957](6c99f01ef4e4293e03293b52be3f290d3fc1f957) (the new site) removed - using [rebase](https://passingcuriosity.com/2017/truncating-git-history/) ### :white_check_mark: Tasks - [ ] test works if not figure out a new workflow - [x] new repo created https://gitlab.com/nofusscomputing/infrastructure/website-pre-2022 - customizations that have to be moved - [ ] blog has been made it's own project - [ ] the tags plugin made into its own project - [ ] found a licence that is open but for non commercial use - [ ] mark issues as confidential that referenced any of the commits to be removed - [x] if repository cleanup does not remove git commits that no longer exist from merge requests, delete the merge requests
jon_nfc commented 2022-01-22 09:09:22 +00:00 (Migrated from gitlab.com)

marked this issue as related to nofusscomputing/ops#41

marked this issue as related to nofusscomputing/ops#41
jon_nfc commented 2022-01-22 09:09:58 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:12:48 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:16:46 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:24:13 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:25:46 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:35:38 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:36:35 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-22 09:39:43 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-23 02:32:04 +00:00 (Migrated from gitlab.com)

added 15m of time spent

added 15m of time spent
jon_nfc commented 2022-01-23 02:32:06 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2022-01-28 07:09:14 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-28 07:09:30 +00:00 (Migrated from gitlab.com)

added 10m of time spent

added 10m of time spent
jon_nfc commented 2022-01-28 07:12:25 +00:00 (Migrated from gitlab.com)
  • ran command git branch new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0 in jon_nfc/website.

  • ran command git branch old-website 6c99f01ef4e4293e03293b52be3f290d3fc1f957

all branches pushed

- ran command `git branch new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0` in jon_nfc/website. - ran command `git branch old-website 6c99f01ef4e4293e03293b52be3f290d3fc1f957` all branches pushed
jon_nfc commented 2022-01-28 07:24:59 +00:00 (Migrated from gitlab.com)

wrong commands above

this wont work need to use git checkout --orphan

deleted branch new-mkdocs-website

command should be

  • git checkout --orphan new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0

  • git commit -m "chore: sanitized repo"

un-tested

  • git merge new-mkdocs-wrbsite

    merge dev into branch new-mkdocs-website

  • push the master and dev branches to the new website-backup repo

  • git branch -D development

  • git branch -D master

  • git checkout --orphan master

  • git checkout --orphan development

  • git merge new-mkdocs-website

  • git log to check history and confirm clean.

# wrong commands above this wont work need to use `git checkout --orphan` **deleted** branch `new-mkdocs-website` command should be - `git checkout --orphan new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0` - `git commit -m "chore: sanitized repo"` **un-tested** - `git merge new-mkdocs-wrbsite` merge dev into branch `new-mkdocs-website` - push the master and dev branches to the new website-backup repo - `git branch -D development` - `git branch -D master` - `git checkout --orphan master` - `git checkout --orphan development` - `git merge new-mkdocs-website` - `git log` to check history and confirm clean.
jon_nfc commented 2022-01-28 07:24:59 +00:00 (Migrated from gitlab.com)

added 15m of time spent

added 15m of time spent
jon_nfc commented 2022-01-28 07:27:20 +00:00 (Migrated from gitlab.com)

marked the checklist item new repo created as completed

marked the checklist item **new repo created** as completed
jon_nfc commented 2022-01-28 07:27:42 +00:00 (Migrated from gitlab.com)
new repo at link https://gitlab.com/nofusscomputing/infrastructure/website-pre-2022
jon_nfc commented 2022-01-28 07:28:04 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-28 09:28:49 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#41

mentioned in issue nofusscomputing/ops#41
jon_nfc commented 2022-01-28 23:50:25 +00:00 (Migrated from gitlab.com)

this thread didn't work

# this thread didn't work
jon_nfc commented 2022-01-28 23:51:13 +00:00 (Migrated from gitlab.com)

Cleaned git history

below are the commands used to clean the repo

git remote add archive https://gitlab.com/nofusscomputing/infrastructure/website-pre-2022.git

git push archive master

git push archive development

git reset b58a76134c8ad8da778756ad1c7e052aa057feb0 --hard

git status

git clean -fd

git status

git checkout --orphan new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0

git commit -m "chore: sanitized repo"

git checkout development

git push archive development --force

git checkout new-mkdocs-website

git rebase --onto new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0 development

git push origin development --force

git checkout --orphan master

git push archive master --force

touch .gitkeep

git add .gitkeep

git commit -m "chore: initial commit"

git push origin master --force

## Cleaned git history below are the commands used to clean the repo ``` bash git remote add archive https://gitlab.com/nofusscomputing/infrastructure/website-pre-2022.git git push archive master git push archive development git reset b58a76134c8ad8da778756ad1c7e052aa057feb0 --hard git status git clean -fd git status git checkout --orphan new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0 git commit -m "chore: sanitized repo" git checkout development git push archive development --force git checkout new-mkdocs-website git rebase --onto new-mkdocs-website b58a76134c8ad8da778756ad1c7e052aa057feb0 development git push origin development --force git checkout --orphan master git push archive master --force touch .gitkeep git add .gitkeep git commit -m "chore: initial commit" git push origin master --force ```
jon_nfc commented 2022-01-29 00:02:43 +00:00 (Migrated from gitlab.com)

added 1h 45m of time spent

added 1h 45m of time spent
jon_nfc commented 2022-01-29 07:49:25 +00:00 (Migrated from gitlab.com)

marked the checklist item if repository cleanup does not remove git commits that no longer exist from merge requests, delete the merge requests as completed

marked the checklist item **if repository cleanup does not remove git commits that no longer exist from merge requests, delete the merge requests** as completed
nfc_bot commented 2022-08-26 01:12:53 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#55

mentioned in issue nofusscomputing/ops#55
jon_nfc commented 2022-08-28 08:12:12 +00:00 (Migrated from gitlab.com)

changed time estimate to 10h

changed time estimate to 10h
nfc_bot commented 2022-09-28 00:31:13 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#69

mentioned in issue nofusscomputing/ops#69
jon added spent time 10 minutes 2025-06-27 06:52:20 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Total Time Spent: 10 minutes
jon
10 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nofusscomputing/website#6
No description provided.