Reinstalling the OS

I have a linux OS on one hard drive with 4 partitions: boot, root, home and swap. I have my storj node installed via docker and all run-scripts and (I suppose so) stored filepieces in my home partition. If I were to install another linux OS without touching the home partition, will my storj node be safe, or do I need to backup something from other partitions, like root?

the storage node consists of two primary parts the identity files and the storj folder.
these two locations are defined when you execute the docker run command.

looks something like this

docker run -d --restart unless-stopped --stop-timeout 300 -p -p \
#--log-opt max-size=1m \
-p -e WALLET="0x111111111111111111111" \
-e EMAIL="" -e ADDRESS="global.ip.inet:28967" \
-e STORAGE="4TB" --mount type=bind,source="/sn3/id-sn3",destination=/app/identity \
--mount type=bind,source="/sn3/storj",destination=/app/config --name sn3 storjlabs/storagenode:latest \
--filestore.write-buffer-size 4096kiB --pieces.write-prealloc-size 4096kiB

the two --mount type… defines the folder of the storagenode and the identity.

optionally there can be a database mount also, which you would also need to retain.
this is only if you have chosen to store your database files on a separate device such as an SSD to help with the IO.

the normal recommendation is to keep the identity folder with the storj folder.
so in most cases you just need to retain those two folders.