Ubuntu 16.04 - create a cron job that runs just before logrotate

Multi tool use
up vote
0
down vote
favorite
I want to upload my apache logs to a remote FTP server, wich i have allready managed to figure out how to do. However.
I could inject the code in the logrotate cron job, but i am worried it would mess up the auto update since it is maintained by the system.
How to i create a cron job that runs just before logrotate in cron.daily
16.04 xubuntu cron
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
I want to upload my apache logs to a remote FTP server, wich i have allready managed to figure out how to do. However.
I could inject the code in the logrotate cron job, but i am worried it would mess up the auto update since it is maintained by the system.
How to i create a cron job that runs just before logrotate in cron.daily
16.04 xubuntu cron
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to upload my apache logs to a remote FTP server, wich i have allready managed to figure out how to do. However.
I could inject the code in the logrotate cron job, but i am worried it would mess up the auto update since it is maintained by the system.
How to i create a cron job that runs just before logrotate in cron.daily
16.04 xubuntu cron
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I want to upload my apache logs to a remote FTP server, wich i have allready managed to figure out how to do. However.
I could inject the code in the logrotate cron job, but i am worried it would mess up the auto update since it is maintained by the system.
How to i create a cron job that runs just before logrotate in cron.daily
16.04 xubuntu cron
16.04 xubuntu cron
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday


Windkin
1
1
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Windkin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday
add a comment |
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Windkin is a new contributor. Be nice, and check out our Code of Conduct.
Windkin is a new contributor. Be nice, and check out our Code of Conduct.
Windkin is a new contributor. Be nice, and check out our Code of Conduct.
Windkin is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092237%2fubuntu-16-04-create-a-cron-job-that-runs-just-before-logrotate%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Xm2i05,kR1O
Why bother? Both new and old logs are still available. Let logrotate run normally, and simply send yesterday's log anytime afterward.
– user535733
yesterday