forge_move

Crates.ioforge_move
lib.rsforge_move
version0.5.0
sourcesrc
created_at2024-07-09 23:00:58.1596
updated_at2024-07-10 12:31:12.037197
descriptionA program to backup a site from one forge server and copy it to another.
homepage
repositoryhttps://github.com/codemonkey76/rust_forge_move
max_upload_size
id1297575
size29,788
Shane Poppleton (codemonkey76)

documentation

README

Forge Move

forge_move is utility for moving websites from one server to another. I developed this for Laravel Forge servers, however it will work with any linux server. It will detect the type of website and backup both the database and website files and copy them to the destination server and restore the DB on that server.

Requirements

  • Rust 1.74 or newer
  • mysqldump
  • gzip
  • Password-less SSH access configured between servers

Rust toolchain

To install the rust toolchain, run the following command

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Installation

To install forge_move, ensure you have the Rust toolchain installed, then run:

cargo install forge_move

Usage

To use forge_move, run the following command:

forge_backup [OPTIONS]

Options

  • --dir <WEBSITE_FOLDER>: Specify where the website files are.

  • --server <DEST_SERVER>: Specify the destination server.

  • --target <TARGET_FOLDER>: Specify the target folder on the new server.

  • -h, --help: Print help information.

  • -V, --version: Print version information.

Example

forge_move --dir . --server new-server --target /home/new_user/some-site.com.au

Contribution Guidelines

We welcome contributions. Please follow these guidelines:

  1. Fork the repository and clone your fork.
  2. Create new branch for your feature or bugfix.
  3. Make your changes and test thoroughly.
  4. Commit your changes with clear and descriptive commit messages.
  5. Push your branch to your forkl.
  6. Open a pull request and describe your changes.

License

This project is licensed under the MIT License.

Issues and Feature Requests

If you encounter any issues or have feature requests, please submit them on our GitHub Issues page.

Contact

For any questions or support, please feel free to reach out via GitHub.

Thank you for using forge_move!

Commit count: 9

cargo fmt