https://github.com/mediaCrowd/hcloud-migration
Shell Script to change the server-type in Hetzner Cloud to. Optimized to be used in a workflow with automated server migration in hcloud.
https://github.com/mediaCrowd/hcloud-migration
hcloud hcloud-migration hcloud-server hetzner-cloud hetzner-cloud-api hetzner-cloud-migration hetzner-cloud-servers hetzner-cloud-utils
Last synced: 6 months ago
JSON representation
Shell Script to change the server-type in Hetzner Cloud to. Optimized to be used in a workflow with automated server migration in hcloud.
- Host: GitHub
- URL: https://github.com/mediaCrowd/hcloud-migration
- Owner: mediaCrowd
- Created: 2021-01-16T17:18:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T18:02:55.000Z (almost 5 years ago)
- Last Synced: 2024-11-26T19:36:43.701Z (about 1 year ago)
- Topics: hcloud, hcloud-migration, hcloud-server, hetzner-cloud, hetzner-cloud-api, hetzner-cloud-migration, hetzner-cloud-servers, hetzner-cloud-utils
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - mediaCrowd/hcloud-migration - Shell Script to change the server-type in Hetzner Cloud to. Optimized to be used in a workflow with automated server migration in hcloud. (others)
README
# Hetzner Cloud Server Migration
This script handles all required commands to migrate a hcloud server to a new server type.
## Features
- Run all required API commands with one shell command
- checks the server status for every migration step
- workflow is optimized to be used with automations, eg. crontab.
- Text-output for logging and debugging keeps track of progress and server status
## Important notes
- migration is only possible when the server is not running, so this script will shut down your server!
- the migration will keep the inital storage size! This is required to easily downgrade a server.
- the script requries the 'jq' command.
## Usage
1. Clone this repo
2. Copy the sample file to a `.sh`-file
eg. ```cp migrate.sh.sample migrate.sh```
3. Enter required data
- server-id
- migration target (eg. "cx21")
- API key
4. If not already done, install `jq`
```apt-get install jq```
5. Run your script or add it to your automation tool