I've encountered a recurring issue with my Windows servers (both 2016 and 2019) crashing, and I've noticed that backups using BackupPC sometimes fail. Upon investigation, I discovered that the problem always stems from file paths exceeding 255 characters. Despite repeatedly advising my users to utilize shorter names and paths, they have not complied, leading to frustration as resolving this requires deleting the offending file and restarting the server, causing significant disruptions.
In search of a solution, I've explored alternative methods that allow users to bypass this limitation. For instance, when saving files through Firefox, the path characters are not counted, and certain third-party tools can extract files from deeply nested directories even with lengthy paths which makes the server crash.
I am seeking advice on implementing a technical restriction to prevent users from creating paths exceeding 255 characters. While educating users is the ideal approach, their reluctance necessitates a technical solution. Any suggestions would be greatly appreciated. Thank you.