Hello!
How to recover a wallet, if I lost the file itself, but the data remained?
What you mean with lost?
Have you created wallet name and password? If so just execute ./edollar-wallet-cli and input your details.
If you still have Mnemonic seed and View key, just recreate and sync again.