My G Suite user which I log into GCP with has been renamed from firstname@domain.com to firstname.lastname@domain.com
I have now logged back into Cloud Shell and my home directory content is gone.
Is there any way of recovering this?
Thanks
Per the documentation, you have some limitations when working with the shell, as stated before you shouldn't have important information stored over there and should be moved to Google Cloud Storage if needed.
There's no way to restore the data lost once your profile was deleted.
For future reference, if your G Suite address has been renamed, your $HOME
directory in the Cloud Shell changes. The old one is still there though.
cd ..
ls
Your previous $HOME
directory should pop up. The shell is linux based, so it uses the same user logic. The thing is that the LDAP is automatically chosen based on your user account LDAP.
/tmp
versus/var/tmp
on a Linux system; the former is ephemeral and erased on every reboot; the latter is persistent, but may be erased at any time (usually it's set up so that old files are deleted). Both are still temporary. I have no reason to trust that persistent temporary space won't be erased while I'm not looking, even if it isn't supposed to be...