New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MEGAsync overwrites the file from the cloud when it is replaced with its earlier version #70
Comments
|
Hello, To achieve a totally deterministic behavior, MEGAsync always syncs the newest file (newer modification time) so if you have changed the modification time to the past, MEGAsync should download the file from the cloud (reverting your change), but if you changed the file to a newer timestamp, MEGAsync should upload it to the cloud. Otherwise, we would have a bug. |
|
Hello, While it makes some sense and greatly simplifies sync logic, having such limitation is a problem: For example, you find that latest revision of the file contains unnecessary changes (corrupted, etc) and you decide to recover previous version from the backup or from the other cloud provider. You will never have that file recovered (with the write/change date in the past) until MEGAsync app is terminated and the date is changes manually to a newer one. |
|
True, I've been worrying about this all the time, it is good to know what happens and I couldn't find this anywhere, a good solution would be local database about the md5 of each file (because the mega servers doesn't have md5 data stored, I think) and check whether the md5 of each file is different, after checking if the file sizes match, with those in database, maybe adding a mirror (upload only, no file download, override different files always) option for sync directories would be a good workaround, because I want to have a folder that is backup of program directories (with symbolic link) and I want to be sure they are perfect copies, not knowing if files with older timestamp are going to override newer ones makes me really worry. |
|
This behavior definitely bombs reliability out of MEGAsync. I also just experienced this: copying back a configuration file just to see it magically returning to its previous and wrong state, although newer. I simply wanted to manually rollback a configuration file. Took me some time until I figured it was MEGAsync downloading the file back from the cloud, since that folder is the only Sync I have in the application. If this is really by design, I can't see how this behavior is acceptable - it's the opposite of any other reliable sync software. |
|
Windows has file history service. Which means that any file can be restored to earlier state. |
|
Replacing an existing file by another with the same name but older date/time is a common task. This issue may lead to very disappointing results. I do not know how it is done, but Dropbox handles it in the right way, even if Dropbox is not running at the time the file is replaced by the old one. I am switching back to Dropbox because it is too much a risk for me. A local database with "update" times of each file (maybe indexed by md5) may do the trick. "Update" time is last time megasync has processed the file, not the actual file's modification time.
Conflicts may be handled by creating a copy of the file (a la Dropbox):
|
|
Megasync HAS A BUG with time detection. |
|
This is an issue when someone send me a file from other timezone. I am unable to change the file until my clock catchup with the original modification time. For example:
|
|
I have just triggered the same issue as @GitStorageOne. I had restored the file from Windows file history service, but the file is covered by the newer version a few seconds later. |
|
This explains why my files seem to be corrupting back! If it's by design I guess I need to stop using this. |
|
Yep. It is by design. That's why I stopped using it.
El sáb., 25 may. 2019 0:15, lcsondes <notifications@github.com> escribió:
… This explains why my files seem to be corrupting back! If it's by design I
guess I need to stop using this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#70?email_source=notifications&email_token=AA5G7KFFFPA7QDWDC4BQI7LPXBSHVA5CNFSM4DACZPH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGVOHQ#issuecomment-495802142>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5G7KB3WBZSPYEDMLPNLN3PXBSHVANCNFSM4DACZPHQ>
.
|
|
I'm sorry but THIS MAKES MEGA UNUSABLE. It makes me afraid of ever copying a file to a synced folder. You just costed my an ENTIRE MORNING debugging some code because THE LAST THING I would expect is this GLARING BUG from a FILE SYNCING SOFTWARE. I understand that using the file's last modified date simplifies keeping track of which files need to be synced, but THIS IS THE WORST POSSIBLE SOLUTION you could use. Please DON'T OFFER A CLIENT if it's broken. This is not the expected behavior IN ANY PLATFORM, IN ANY APPLICATION. I don't care if it's free. This is like giving away free cyanide candy. I think the last time I used so many caps in the internet was 20 years ago. |
|
Are there any updates? |
|
Just got the same situation. Electricity turned off and I put an SSD drive from PC to notebook. I'm using the dual boot for Windows and Linux and had to fix something to have the time on both OS, so... eventually, when I put the drive back I get the bug - any new changes reverted back. If checking the file modified date, it would show some future time. Thanks freaking god, I found the correct version in .derbis folder. though not in cloud file versions. |
|
This bug nearly drove me mad. I was using an application that batch compresses files of different types. It optionally retains the date of the original file, which of course make sense if you don't want to end up with 1000s of files with the same date. Mega quietly replaced the compressed files with the uncompressed ones. Now I am worried Mega may lose my data if I do the wrong thing without checking afterwards. |
|
I'm not affiliated with Dropbox in any way, but I know they are the only company that does this right. |
|
I went with storing self-encrypted blobs on OneDrive, no complaints about that one either. |
I second that. Dropbox works like a charm (I am not affiliated either). The known problem is it is lacking encryption with keys only in your possession and with added 3rd party encryption seamless sync becomes a challenge. I had enough of these MEGA sync issues lately and quit. Now working with a combination of NAS and Sync.com |
|
About 4 and half years this has been open and nothing has changed. I don't think that they care. |
|
This will be fixed, as part of a larger project, you can expect it within 6 months. |
@mattw-mega Thanks for the update. Any news about the fix? |
|
I'm pretty sure most people using this is having the same problem, I started having this yesterday which is annoying as hell, and it keeps overwriting the new stuff I want to replace the original, but it keeps coming back. |
|
I stopped using MEGA primarily for this reason. Seems like it's not a priority. |
Steps to reproduce:
Result:
After file sync is finished, its date/time is reverted (i.e. synced from MEGA cloud).
Expected result:
File date/time is synced to MEGA cloud.
Environment:
Windows 10 (10.0.14393), 64-bit
MEGAsync 3.0.1 (bba5666)
The text was updated successfully, but these errors were encountered: