Backup/Restore hosts file
You can save a copy of your hosts file with this command:
hostctl backup --path $HOME/hostctl/
It will create a file $HOME/hostctl/hosts.20200314 with the full content of your hosts file.
You can restore a previous backup of your hosts file with this command:
hostctl restore --from $HOME/hostctl/hosts.20200314
Last updated by Márk Sági-Kazár on December 8, 2021 at 11:06 +0100