EmuDeck icon indicating copy to clipboard operation
EmuDeck copied to clipboard

Cloud saves should enforce maximum file size

Open Pobega opened this issue 1 year ago • 2 comments

It would be nice if cloud saves enforced maximum file sizes by default. It took me a while to realize my PCSX2 HDD (which is a sparse file and only uses 2GB on my filesystem) was being uploaded as a 40GB file in the background.

Ideally there would be some sane by default file size limit that could be disabled in case anyone actually wants to sync larger files.

Also note that it would need to be sparse file aware (du --apparent-size) since a file could be 100mb on Deck but 40+GB in GDrive (due to lack of support for sparse files)

Pobega avatar Mar 06 '23 16:03 Pobega

I had no idea that people put the hdd in the saves location.

Nonetheless it would be an rclone issue, I think.

Please look at the documentation there and if it can handle your restriction, we can look at adding it in general if it makes sense.

Godsbane avatar Mar 06 '23 23:03 Godsbane

Yeah, I've since moved my HDD out of the save location to stop it from syncing but it was an unfortunate surprise to find my Google Drive full, thankfully I wasn't on mobile data at the time (was traveling shortly after setting up my PS2 emulator.)

Browsing through the rclone docs it looks like there is a --max-size filter option available

I'm not sure what a good default would be, my gut feeling is that 100mb as a size limit would be reasonable.

Pobega avatar Mar 08 '23 04:03 Pobega