-
-
Notifications
You must be signed in to change notification settings - Fork 22
Add git backup to remote repository (closes #996) #1018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EduardSchwarzkopf
wants to merge
57
commits into
perber:main
Choose a base branch
from
EduardSchwarzkopf:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
61b1dac
feat: add git backup package
EduardSchwarzkopf d534481
feat: add git backup CLI flags and initialization in cmd/leafwiki
EduardSchwarzkopf 10362c0
feat: add backup admin API routes
EduardSchwarzkopf b610989
feat: add backup settings UI component
EduardSchwarzkopf e642ab5
feat: add docker backup documentation
EduardSchwarzkopf 121cbaa
fix: add logging to backup module
EduardSchwarzkopf 143eab2
fix: use insecure host key callback for SSH git backup
EduardSchwarzkopf 53009da
fix: prevent time.NewTicker panic on zero interval in backup scheduler
EduardSchwarzkopf 8944c7a
fix: update LastBackupAt only when content was actually backed up
EduardSchwarzkopf 0775664
feat: add git backup variables
EduardSchwarzkopf 49898be
feat: add backup settings to user dropdown
EduardSchwarzkopf a0a3e79
fix: align BackupSettings layout with other settings pages
EduardSchwarzkopf dc913a4
feat: make it prettier
EduardSchwarzkopf 2f5b424
fix: handle empty commit error gracefully on first start
EduardSchwarzkopf 4b7bcd9
fix: serialize LastBackupAt as null instead of zero time in JSON
EduardSchwarzkopf cd80813
chore: update backup settings hint with all required env vars
EduardSchwarzkopf 6a3bd19
chore: only show Last error field when there is an actual error
EduardSchwarzkopf 5801377
chore: remove separate docker-backup.md doc
EduardSchwarzkopf edbd97c
chore: document git backup feature in README
EduardSchwarzkopf 816c86d
chore: formatting
EduardSchwarzkopf 1023943
fix: push to configured branch instead of remote's default branch
EduardSchwarzkopf d7b57a9
fix: treat already up-to-date as successful backup (not an error)
EduardSchwarzkopf a010cfa
fix: use strings.Contains for already up-to-date error check
EduardSchwarzkopf bf0a9d0
fix: use case-insensitive check for already up-to-date error
EduardSchwarzkopf d0d75b3
feat: update manual push logic
EduardSchwarzkopf 08d0a7a
feat: update manual push logic
EduardSchwarzkopf 526fb4d
feat: add debug logging
EduardSchwarzkopf 4b11f05
fix: error message wipe
EduardSchwarzkopf dc29036
docs: enhance README with backup feature
EduardSchwarzkopf 26679ef
feat: add SSHKnownHosts and Duration() method
EduardSchwarzkopf f30ca81
feat: use value-type LastBackupAt and omitempty on LastError
EduardSchwarzkopf 55cfe09
fix: add db-journal to gitignore and respect system umask
EduardSchwarzkopf 28858ac
feat: add panic recovery, waitgroup, and race-free trigger
EduardSchwarzkopf c460800
fix: propagate errors, validate author fields, remove force-push
EduardSchwarzkopf 0ebb3cf
Merge branch 'main' into main
perber 5a08da9
Add backupRoutes to wiki service structure
perber 16020e4
fix: cmd/leafwiki/main.go:344:53
EduardSchwarzkopf 76f4c9f
fix: linter
EduardSchwarzkopf a6edb95
fix: linter
EduardSchwarzkopf 82ee157
lint: prettier
EduardSchwarzkopf 04386fa
Potential fix for pull request finding
EduardSchwarzkopf 5e46fc8
chore: run go mod tidy to remove unused golang.org/x/exp dependency
EduardSchwarzkopf 9362e85
fix(backup): fix infinite polling loop on first-ever backup
EduardSchwarzkopf 073938a
fix(backup): use fetchWithAuth instead of raw fetch
EduardSchwarzkopf 7e10231
fix(backup): add .leafwiki/ and schema.json to gitignore, remove sysc…
EduardSchwarzkopf 9496372
fix(backup): don't set LastBackupAt on no-op skip, split misleading l…
EduardSchwarzkopf a7f5ba6
fix(backup): simplify TriggerNow to single non-blocking send
EduardSchwarzkopf 3554fc2
fix(backup): replace direct repo.status.LastBackupAt with repo.Status…
EduardSchwarzkopf 5bcbcae
fix: wire SSHKnownHosts from CLI/env, make remote optional
EduardSchwarzkopf 1e1bbef
chore: add LEAFWIKI_GIT_BACKUP_SSH_KNOWN_HOSTS entry
EduardSchwarzkopf 99c2ff0
docs: update description to say remote is optional
EduardSchwarzkopf 18eb869
chore: remove obselete comment
EduardSchwarzkopf b8b12b8
fix: type casting
EduardSchwarzkopf b9a4c29
feat: refactoring
EduardSchwarzkopf 3585237
Merge branch 'main' into main
EduardSchwarzkopf 3192fdd
chore: fix versions
EduardSchwarzkopf e467deb
Merge branch 'main' into main
EduardSchwarzkopf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.