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 |
#213 in Database interfaces
96 downloads per month
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:
- Fork the repository and clone your fork.
- Create new branch for your feature or bugfix.
- Make your changes and test thoroughly.
- Commit your changes with clear and descriptive commit messages.
- Push your branch to your forkl.
- 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–15MB
~130K SLoC