How to backup secret_key.txt?

I cannot SFTP the secrey_key.txt file to keep my backup safe. I get a permission error. I’m logging in using my admin username and password but I still don’t have permission! How can I copy it? (I’m using FileZilla). I’ve managed to copy the encrypted and cache folders - but not the all important key file!

Login via SSH and elevate to root privileges.

So I can’t do it directly from FileZilla? Do I need to make copy of the file somewhere else on the MiaB machine then SFTP it to my backup location?

You can’t do it directly from filezilla because your user is non-privileged and you can’t elevate in filezilla. (also, don’t use filezilla. It has bundled malware for years. Switch to WinSCP)

Login via SSH and run
sudo cat /home/user-data/backup/secret_key.txt

That will display the contents of the file in your terminal. Copy and paste it somewhere safe. Done!

1 Like

Thanks!
That’s very helpful.