Manual backups to "C:\Users\BB\OneDrive\Documents\KMyMoney\backup" Only allows same backup name to this folder will overwrite existing. I am not sure which version, but I used to backup to another folder (Without creating that folder first) as following: /C:/Users/BB/OneDrive/App Data/Financial/KmyMoney\06\ or /C:/Users/BB/OneDrive/App Data/Financial/KmyMoney\06 now I get "Error copying file to device" I have to create folder "06" before backing up to this folder Would be nice to create new folder on the go
Please confirm whether this is the menu File/Backup or File/Save or Save As. Backups add a time stamp to the file name, so uniqueness should not be an issue.. I don't believe that you could ever save a file to a director that did not already exist, so at least some idea of how long ago you claim this worked would be helpful. Please be consistent with slashes (all forward or all backward) as mixing them is confusing. Please confirm that all these are local folders, with no network mapping involved. Network drives add a layer of complexity, especially on Windows. Where are you specifying this folder? I don't have a copy of Windows handy to check on the differences in the save file dialog, but on Linux, the dialog lets you browse through folders and specify a file name, but I don't think you can specify the path in the file name box, just the name.
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
(In reply to bnbunch from comment #0) > I have to create folder "06" before backing up to this folder Would be nice > to create new folder on the go See bug 415637 comment 2 for how kmymoney creates backup files.
(In reply to bnbunch from comment #0) > Manual backups to "C:\Users\BB\OneDrive\Documents\KMyMoney\backup" > Only allows same backup name to this folder will overwrite existing. I am not sure which version, > but I used to backup to another folder (Without creating that folder first) as following: > /C:/Users/BB/OneDrive/App Data/Financial/KmyMoney\06\ or > /C:/Users/BB/OneDrive/App Data/Financial/KmyMoney\06 Having a path prefixed with '/' is invalid on Window. There was an attempt to fix this issue with https://invent.kde.org/office/kmymoney/-/commit/c195e0cda57949891207f5c7f2c817d2b6fbe298, but it does not seem to cover this case. also including a space in the path may be an issue causes by the currently uses command line refered to in comment 4: copy /b /y <source> + nul <destination> where it should be copy /b /y "<source>" + nul "<destination>" to be able to deal with spaces in path. > now I get "Error copying file to device" > I have to create folder "06" before backing up to this folder Would be nice > to create new folder on the go This problem has already been fixed in the source code (https://invent.kde.org/office/kmymoney/commit/774fef67ff2683e12f7e7982a5aec094fdfad9b6 and https://invent.kde.org/office/kmymoney/commit/e08f8beae9eca9beea4562ab69e645e0239ba9dd) and will be available with the next versions or immediately by using a kmymoney snapshot (see https://kmymoney.org/download.html).
(In reply to Ralf Habacker from comment #5) > Having a path prefixed with '/' is invalid on Window. There was an attempt > to fix this issue with > https://invent.kde.org/office/kmymoney/-/commit/ > c195e0cda57949891207f5c7f2c817d2b6fbe298, but it does not seem to cover this > case. > I am not sure which version The version you are using may be older than the above fix, which explains why this problem occurs. Please test again with a recent kmymoney snapshot.
So should this remain open, or be closed again?
I think yes, as a result of my investigation, a fix is required in source [here](https://invent.kde.org/office/kmymoney/-/blame/c195e0cda57949891207f5c7f2c817d2b6fbe298/kmymoney/kmymoney.cpp?page=3#L2409), but I haven't checked it on an installation yet, which is why I haven't set this ticket to “confirmed” status yet.
(In reply to Ralf Habacker from comment #8) If you use paths with spaces in Windows, e.g. in batch files or with cmd.exe, you have to separate them from other parameters with quotation marks. However, the QProcess class used here seems to take this into account, as saving with spaces in the path works as expected under Windows when a test is performed. What does not fit in this ticket is the title that the problem was due to the missing creation of the directory. This issue were reported also at https://invent.kde.org/office/kmymoney/-/issues/58.