-
Notifications
You must be signed in to change notification settings - Fork 6
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
Purge bin logs #60
Purge bin logs #60
Conversation
alihm
commented
Apr 3, 2024
- Purges mysql bin logs every 48 hours
- Fix for Navicat clients
- Other minor fixes and improvements
console.log('data: ', data); | ||
let startDate = new Date(data.min_timestamp); | ||
let endDate = new Date(data.max_timestamp); | ||
let dp = $('.datepicker-tm').datepicker({ |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
console.log(window.generatingbackup); | ||
if(!window.generatingbackup){ | ||
window.generatingbackup = true; | ||
const result = await axios.post(`${window.apiURL}/generatebackup`, { timeout: 2000 }); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
|
||
} | ||
async function deleteFile(filename){ | ||
const result = await axios.post(`${window.apiURL}/deletebackup`, { filename }, { timeout: 2000 }); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
var filename = target.getAttribute('data-filename'); | ||
console.log(filename); | ||
$('#confirm-modal').modal('show'); | ||
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to delete this file?<br><b>${filename}.sql</b></span>`); |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium
DOM text
$('#modal-spinner').show(); | ||
window.execute_spinner.classList.remove('d-none'); | ||
window.import_in_progress = true; | ||
const result = await axios.post(`${window.apiURL}/executebackup`, { filename }, { timeout: 200000 }); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to execute this file?<br><b>${filename}.sql</b></span></br> | ||
<div class="spinner-border" id="modal-spinner" style="width: 1rem; height: 1rem; border: 0.2em solid #000; border-right-color: transparent;" role="status">`); |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium