mcserversoft / IssueTracker

Public issue tracker for mcss.
https://www.mcserversoft.com
1 stars 0 forks source link

When the backup 'ZIP file format' contains a slash the backup fails because the folder does not exist. #12

Open CodeLeopard opened 11 months ago

CodeLeopard commented 11 months ago

Describe the bug When the zip file format in Settings tab -> Backup -> ZIP file format contains a slash the backup fails with the error that the path for the zip file does not exist.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings tab -> Backup -> ZIP file format
  2. Enter example/example
  3. Trigger a backup.
  4. The backup starts and immediately fails.

Expected behavior When the path contains a slash any folders needed are created, and the backup succeeds.

Screenshots For the image below I entered ServerName/[backupname]_[date]_[time]. The tooltip reports the error: Could not find part of the path: 'MCSS_INSTALL_LOCATION\backups\ServerName\Daily Backup_02-01-2024_13-58.zip'. image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Fiahblade commented 10 months ago

Hi forgot to respond, will take a look. Thanks for reporting the issue.

Fiahblade commented 10 months ago

Hi again, I've checked again and you can't enter a slash in the UI. So I'm not sure how you created that name. This functionality could be added however.

CodeLeopard commented 10 months ago

I was able to enter a path with a slash (both forward and backward), I tried it again just now. When I leave and re-enter the settings it is still there.

image

About window: image

When I manually trigger the backup it fails like described in the first post. Interestingly in both cases the error message reports a path with only backslash, so a forward slash entered becomes a backslash in the error message.

Fiahblade commented 10 months ago

Thanks, wil investigate further. It would be a cool feature.