What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Guides HOWTO : logrotate Pgblitz ( UPLOAD )

M

MrDoob

Guest
So today I share my logrotate file with the Community.

If you don't know what is this .
Please don't use it.

1.) cd /etc/logrotate.d/

2.) nano pgblitz

3.) Copy / Past the lines above

Code:
/var/plexguide/logs/*.log {
  su <your-username> <your-username>
  rotate 7
  daily
  compress
  missingok
  notifempty
  maxage 7
  create 755 <your-username> <your-username>
}
Info >> edit <your-username> to the your username


4.)
How to test the config file >>

/usr/sbin/logrotate --verbose /etc/logrotate.conf

If you see this output ( scroll up in the terminal )

Code:
rotating pattern: /var/plexguide/logs/*.log  after 1 days (7 rotations)
empty log files are not rotated, old logs are removed
switching euid to 1000 and egid to 1000
considering log /var/plexguide/logs/pgblitz.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
considering log /var/plexguide/logs/pg.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
considering log /var/plexguide/logs/rclone-gcrypt.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
considering log /var/plexguide/logs/rclone-gdrive.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
considering log /var/plexguide/logs/rclone-tcrypt.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
considering log /var/plexguide/logs/rclone-tdrive.log
  Now: 2019-04-10 20:52
  Last rotated at 2019-04-10 20:00
  log does not need rotating (log has been already rotated)
switching euid to 0 and egid to 0
5.) That's all ;D

done // 13 April 2019

Info 2 : # it will be later for implemented in the install and update process.

Screenshot_20190411-161753_JuiceSSH.jpg
 
Last edited by a moderator:
M

MrDoob

Guest
edit // done

file created //

pushed now to the Settings commands
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Top