tor bootstrap progress

Nice. Let me know if you need any help with that. Restore could be a bit difficult to not mess up access rights. Not sure Tor would auto fix wrong access rights, probably not.

What’s easier? Copy Tor state folder to a temporary folder and copy back?

Or involving git…

Install git.

sudo apt-get update
sudo apt-get install git

Backup.

sudo su
systemctl stop tor@default
cd /var/lib/tor
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git add *
git commit -a -m .

Delete.

sudo rm -r /var/lib/tor/*

Let Tor generate new state files.

systemctl restart tor@default

Restore.

sudo su
systemctl stop tor@default
cd /var/lib/tor
git reset --hard
systemctl restart tor@default

Lightly tested.

2 Likes

OK - that’s definitely not easier. Since the last user couldn’t clone a Whonix-GW, there is zero chance of that level of user achieving the above, and the instructions will be wasted.

Since 99% of users disappear after changing their Tor guards (proving our point it’s not related to Whonix), then I’m not sure this adds value.

3 Likes

It seems mv and mv back is easier?

systemctl stop tor@default
sudo mv /var/lib/tor /tmp
systemctl restart tor@default

Restore:

systemctl stop tor@default
sudo rm -r /var/lib/tor
sudo mv /tmp/tor /var/lib
systemctl restart tor@default
3 Likes

Fixed. Thanks iry!

P.S. Good work over on the Tor dev mailing list re: torrc.d

3 Likes