docs/learn/switching-install-types.md
You can switch between different Netdata installation types and release channels based on your needs. This guide covers both scenarios with step-by-step instructions.
Before switching install types, you need to back up your configuration and data to preserve your settings.
<details> <summary><strong>For Native Packages and Local Builds</strong></summary>When backing up configuration and data for install types other than static builds or Docker containers, you should back up these directories:
/etc/netdata (excluding /etc/netdata/.environment and /etc/netdata/.install-type)/var/cache/netdata/var/lib/netdata:::warning
You must exclude the .environment and .install-type files from your backup. Copying these files from one install type to another will break updates.
:::
</details> <details> <summary><strong>For Docker Containers</strong></summary>When backing up configuration and data for Docker containers, you should back up these paths from inside the container:
/etc/netdata (excluding /etc/netdata/.environment and /etc/netdata/.install-type)/var/cache/netdata/var/lib/netdata:::warning
You must exclude the .environment and .install-type files from your backup. Copying these files from one install type to another will break updates.
:::
</details> <details> <summary><strong>For Static Builds</strong></summary>When backing up configuration and data for static builds, you should back up these directories:
/opt/netdata/etc/netdata (excluding /opt/netdata/etc/netdata/.environment and /opt/netdata/etc/netdata/.install-type)/opt/netdata/var/cache/netdata/opt/netdata/var/lib/netdata:::warning
You must exclude the .environment and .install-type files from your backup. Copying these files from one install type to another will break updates.
:::
</details> <details> <summary><strong>Switching Between Install Types (Non-Docker)</strong></summary>For all install types other than Docker images, you can use this officially supported method:
Back up your configuration and data that you want to preserve using the appropriate method above.
Run the kickstart script with clean reinstall:
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh --reinstall-clean [OPTIONS_FOR_DESIRED_INSTALL_TYPE]
Restore your backups to the appropriate paths in the new installation.
To switch from a native, static, or local install to a Docker image:
Back up your configuration and data that you want to preserve.
Uninstall the existing installation:
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh --uninstall
Start the Docker container for the Netdata agent.
Restore your backup contents to the respective paths inside the Docker container (the paths within the container are the same as those used for a native package install on the host).
Restart the Docker container to apply the restored configuration.
To switch from a Docker container to a different install type:
Back up your configuration and data that you want to preserve from inside the container.
Remove the container.
Install Netdata using the kickstart script:
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh [OPTIONS_FOR_DESIRED_INSTALL_TYPE]
Restore your backups to the appropriate paths in the new installation.
For static builds and local builds, you can simply run the kickstart script with the reinstall option:
<details> <summary><strong>Switch to Stable Channel</strong></summary>wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh --reinstall --stable-channel
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh --reinstall --nightly-channel
Follow the standard container recreation process used for updates, but replace the image tag with the one corresponding to your target release channel:
stable taglatest tag# Install stable repository (automatically removes nightly repo)
sudo apt install netdata-repo
sudo apt update
sudo apt remove netdata
sudo apt install netdata
# Install nightly repository (automatically removes stable repo)
sudo apt install netdata-repo-edge
sudo apt update
sudo apt remove netdata
sudo apt install netdata
# Install stable repository (automatically removes nightly repo)
sudo dnf install --allowerasing netdata-repo
sudo dnf remove netdata
sudo dnf install --refresh netdata
# Install nightly repository (automatically removes stable repo)
sudo dnf install --allowerasing netdata-repo-edge
sudo dnf remove netdata
sudo dnf install --refresh netdata
# Install stable repository (automatically removes nightly repo)
sudo zypper install --allowerasing netdata-repo
sudo zypper refresh
sudo zypper remove netdata
sudo zypper install netdata
# Install nightly repository (automatically removes stable repo)
sudo zypper install --allowerasing netdata-repo-edge
sudo zypper refresh
sudo zypper remove netdata
sudo zypper install netdata
:::tip
When switching release channels with native packages, the repository configuration packages automatically handle the removal of the previous channel's repository to prevent conflicts.
:::