We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The default script does the following for removing old backups:
# Rotate backups -- keep most recent 10 Rotate=$(ls -1tr dirname/minecraftbe/servername/backups | head -n -10 | xargs -d '\n' rm -f --)
The problem is that the 'rm' command that xargs is operating on is just the list of files but rm is performing them in the wrong working directory.
A simple fix for this would be to change to the correct directory first. So the following works:
# Rotate backups -- keep most recent 10 Rotate=$(pushd dirname/minecraftbe/servername/backups; ls -1tr | head -n -10 | xargs -d '\n' rm -f --; popd)
The text was updated successfully, but these errors were encountered:
Thank you, I have committed your fix!
Sorry, something went wrong.
Fix issue #76
16e7616
TheRemote
No branches or pull requests
The default script does the following for removing old backups:
The problem is that the 'rm' command that xargs is operating on is just the list of files but rm is performing them in the wrong working directory.
A simple fix for this would be to change to the correct directory first. So the following works:
The text was updated successfully, but these errors were encountered: