#server #backup #forge #website #copy #another #site

app forge_move

A program to backup a site from one forge server and copy it to another

5 releases (breaking)

0.5.0 Jul 10, 2024
0.4.0 Jul 10, 2024
0.3.0 Jul 10, 2024
0.2.0 Jul 9, 2024
0.1.0 Jul 9, 2024

#287 in Database interfaces

Download history 240/week @ 2024-07-04 107/week @ 2024-07-11 7/week @ 2024-07-18 35/week @ 2024-07-25

96 downloads per month

MIT license

18KB
430 lines

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!

Dependencies

~3–14MB
~129K SLoC