Skip to content
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

Temp backup folder causing issue on some restarts. #59

Closed
jakman76 opened this issue Apr 9, 2024 · 0 comments · Fixed by #70
Closed

Temp backup folder causing issue on some restarts. #59

jakman76 opened this issue Apr 9, 2024 · 0 comments · Fixed by #70

Comments

@jakman76
Copy link

jakman76 commented Apr 9, 2024

stated to use the PS a little bit ago - excellent work!

I was running into an issue with the temp-backup folder already existing error. Seems like the last backup was not correctly deleting the folder. This will exit the startup with error. (error: folder already exist in line 79 of Backup-Server.psm1. Maybe the compressor had a lock on the folder when the remove command was executed?
I fixed the problem by adding another remove folder (new line 79) before creating it again:
This works 100% now.

78: # Create a temporary directory
79: Remove-Item -Path "$($Backups.Path)$Type$((Get-Item $Backups.Saves).Name)" -Force -Recurse
80: $TempDirectory = New-Item -ItemType Directory -Path "$($Backups.Path)$Type$((Get-Item $Backups.Saves).Name)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant