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

Cleanup of logfile only if backup was created successfully #1327

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KapUttyy
Copy link
Contributor

@KapUttyy KapUttyy commented Jul 4, 2024

Checking if this months backup of the logfile already exists. If not copying and zipping of logfile.
If zipped logfile is created successfully, copy of logfile will be erased and nohup.out gets cleaned up.

Not every run of the script if it is the first day of the month.

Please review before merging as I am not a shell script guy ;-)

Checking if this months backup of the logfile already exists.
If not copying and zipping of logfile.
If zipped logfile is created successfully, copy of logfile will be erased and nohup.out gets cleaned up.

Not every run of the script if it is the first day of the month.
@rowich
Copy link
Contributor

rowich commented Aug 3, 2024

Didn't saw this before. Might be overlapping with my pull request:
#1344

I made a similar change, but more complex to cleanup stuff, but have yearly backups still available.

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 this pull request may close these issues.

2 participants