Refactor backup configuration paths to be configurable; remove ~/work/#1
Open
thedavidweng wants to merge 4 commits intoultraworkers:mainfrom
Open
Refactor backup configuration paths to be configurable; remove ~/work/#1thedavidweng wants to merge 4 commits intoultraworkers:mainfrom
thedavidweng wants to merge 4 commits intoultraworkers:mainfrom
Conversation
…clude paths via config Agent-Logs-Url: https://github.com/thedavidweng/hbackup/sessions/f1204332-755c-4dcc-959f-a99541243758 Co-authored-by: thedavidweng <95214375+thedavidweng@users.noreply.github.com>
Agent-Logs-Url: https://github.com/thedavidweng/hbackup/sessions/290ede70-ad55-4ed4-83a1-eb7632829591 Co-authored-by: thedavidweng <95214375+thedavidweng@users.noreply.github.com>
…overy Agent-Logs-Url: https://github.com/thedavidweng/hbackup/sessions/fc9122ea-08de-43d6-b478-99e48307cb44 Co-authored-by: thedavidweng <95214375+thedavidweng@users.noreply.github.com>
…g-paths Fix default backup paths: remove ~/work/openclaw, restore ~/.openclaw/workspace* discovery
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request enhances the backup tool's flexibility by allowing users to specify extra directories to include or exclude in every backup via configuration. It removes hardcoded workspace paths, making the tool more adaptable to different setups. The documentation is updated to reflect these changes, and the backup logic is refactored to support the new configuration options.
Configuration and User Customization:
[paths]in the config file, allowing users to specifyextradirectories to include andexcludedirectories to skip in every backup. Paths support~expansion. (README.md[1] [2];src/main.rs[3] [4]src/main.rs[1] [2];src/backup.rs[3] [4]Backup Path Discovery Refactor:
~/work/hermes-agentand~/work/openclawfrom the default backup set; these can now be added via the config if needed. (src/paths.rssrc/paths.rsL49-L68)src/paths.rssrc/paths.rsL27-R61)src/paths.rssrc/paths.rsR238-R242)Documentation Updates:
README.mdto document the new[paths]configuration, removed references to automatic workspace discovery, and clarified what is backed up by default. (README.md[1] [2] [3]These changes make the backup tool more user-configurable and less dependent on hardcoded paths, improving its usability across different environments.