Which files or folders to back up to properly restore MegaSync after installation of OS?
Which folders or files have to be backed up, in order to properly restore the same config of MegaSync after a fresh installation of the OS, in this case Ubuntu?
Previously it was enough to back up and restore only ~/.local/share/data/Mega Limited/MEGAsync/MEGAsync.cfg, but nowadays not any more, because you still have to set up the sync and backup folders even after the .cfg file was copied over and MegaSync launched for the first time.
Did you try taking the whole ~/.local/share/data/Mega Limited/ tree ? I haven't tested.
No, because the megaclient_statecache… files under ~/.local/share/data/Mega Limited/MEGAsync seem like cache files to me, which usually shouldn't be backuped and restored.
Don't knock before you try it, or read the source code.