Skip to content

chore: selfhost backup restore#5188

Merged
sriramveeraghanta merged 7 commits intopreviewfrom
chore/selfhost-backup-restore
Jul 23, 2024
Merged

chore: selfhost backup restore#5188
sriramveeraghanta merged 7 commits intopreviewfrom
chore/selfhost-backup-restore

Conversation

@mguptahub
Copy link
Collaborator

@mguptahub mguptahub commented Jul 22, 2024

Summary by CodeRabbit

  • New Features

    • Introduced a "Restore Data" section in the README for the Plane-CE application, providing step-by-step instructions on data restoration.
    • Added a restore.sh script to automate the restoration of Docker volumes for the Plane App, enhancing user experience with clear prompts and error handling.
  • Documentation

    • Enhanced documentation to improve clarity and usability regarding data restoration procedures.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 22, 2024

Walkthrough

The recent changes introduce a "Restore Data" section in the README.md for the deploy/selfhost directory, providing users with a clear, step-by-step guide to restoring data for the Plane-CE application. Additionally, a new script, restore.sh, has been implemented to automate the restoration of Docker volumes, enhancing usability and streamlining the process. These improvements significantly enrich the documentation and user experience regarding data restoration.

Changes

Files Change Summary
deploy/selfhost/README.md Added "Restore Data" section with comprehensive instructions for restoring backed-up data for Plane-CE, including command usage and expected output.
deploy/selfhost/restore.sh Introduced a script to automate the restoration of Docker volumes for Plane App, featuring functions for restoring data, checking service status, and managing edge cases.

Poem

🐇 In the land of code where data flows,
A new way to restore, as everyone knows.
With commands and scripts, our worries disperse,
A hop and a skip, we’ve fixed our verse!
So let’s celebrate this joyful delight,
Restoring our data, everything feels right! 🎉


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

Outside diff range, codebase verification and nitpick comments (7)
deploy/selfhost/restore.sh (1)

3-18: Consider improving the heredoc content for better readability.

The header content could be more readable by aligning the slashes and text.

-  ____  _                          ///////// 
- |  _ \| | __ _ _ __   ___         ///////// 
- | |_) | |/ _` | '_ \ / _ \   /////    ///// 
- |  __/| | (_| | | | |  __/   /////    ///// 
- |_|   |_|\__,_|_| |_|\___|        ////      
-                                  ////      
+  ____  _                         /////////
+ |  _ \| | __ _ _ __   ___        /////////
+ | |_) | |/ _` | '_ \ / _ \   /////    /////
+ |  __/| | (_| | | | |  __/   /////    /////
+ |_|   |_|\__,_|_| |_|\___|       ////
+                                 ////
deploy/selfhost/README.md (6)

377-377: Fix grammatical issue.

The sentence should be "When you want to restore the previously backed-up data, follow the instructions below."

- When you want to restore the previously backed-up data, you need to follow the below instructions
+ When you want to restore the previously backed-up data, follow the instructions below.

379-379: Fix grammatical issue.

The sentence should be "Make sure that Plane-CE is installed, started, and then stopped. This ensures that the Docker volumes are created."

- Make sure that Plane-CE is installed, started and then stopped. This is to make sure that the docker volumes were created.
+ Make sure that Plane-CE is installed, started, and then stopped. This ensures that the Docker volumes are created.

381-381: Fix grammatical issue.

The sentence should be "Download the restore script using the command below. We suggest downloading it in the same folder as setup.sh."

- Download the restore script using below command. We suggest to download in the same folder as `setup.sh`.
+ Download the restore script using the command below. We suggest downloading it in the same folder as `setup.sh`.

388-388: Fix grammatical issue.

The sentence should be "Execute the command below to restore your data."

- Execute the below command to restore your data
+ Execute the command below to restore your data.

394-394: Improve readability of example output.

The example output could be formatted better for readability.

- As an example, for a backup folder as `/opt/plane-selfhost/plane-app/backup/20240722-0914` expect response as below
+ As an example, for a backup folder `/opt/plane-selfhost/plane-app/backup/20240722-0914`, expect the response below:

419-419: Fix grammatical issue.

The sentence should be "Start the Plane instance using ./setup.sh start."

- Start the Plane instance using `./setup.sh start`
+ Start the Plane instance using `./setup.sh start`.
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 8577a56 and 82acb88.

Files selected for processing (2)
  • deploy/selfhost/README.md (1 hunks)
  • deploy/selfhost/restore.sh (1 hunks)
Additional context used
Shellcheck
deploy/selfhost/restore.sh

[warning] 39-39: Declare and assign separately to avoid masking return values.

(SC2155)


[warning] 47-47: Declare and assign separately to avoid masking return values.

(SC2155)


[warning] 57-57: Declare and assign separately to avoid masking return values.

(SC2155)


[warning] 63-63: Declare and assign separately to avoid masking return values.

(SC2155)


[error] 94-94: Double quote array expansions to avoid re-splitting elements.

(SC2068)

Additional comments not posted (1)
deploy/selfhost/README.md (1)

412-412: Fix example output error.

The example output contains an error message that should be corrected or explained.

Is the error message "mv: can't rename '/restore/redisdata/*': No such file or directory" expected? If so, please provide an explanation. If not, please correct the example output.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 82acb88 and 0cb8e0f.

Files selected for processing (2)
  • deploy/selfhost/README.md (1 hunks)
  • deploy/selfhost/restore.sh (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • deploy/selfhost/README.md
  • deploy/selfhost/restore.sh

@makeplane makeplane deleted a comment from coderabbitai bot Jul 23, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0cb8e0f and d1e60bb.

Files selected for processing (2)
  • deploy/selfhost/README.md (1 hunks)
  • deploy/selfhost/restore.sh (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • deploy/selfhost/README.md
  • deploy/selfhost/restore.sh

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d1e60bb and 6d600fa.

Files selected for processing (1)
  • deploy/selfhost/README.md (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • deploy/selfhost/README.md

@sriramveeraghanta sriramveeraghanta merged commit 78481d4 into preview Jul 23, 2024
@sriramveeraghanta sriramveeraghanta deleted the chore/selfhost-backup-restore branch July 23, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants