Opened 10 years ago

Closed 8 years ago

#247 closed defect (fixed)

Support backup file rotation

Reported by: dmik Owned by:
Priority: major Milestone: Utilities/Scripte 1.0.0
Component: Samba Server Scripts Version: Server 3.6.x
Keywords: Cc:

Description

Currently, smb.cmd creates ZIPs for log files (/MPTN/etc/samba/log) and for configuration files (from both /etc and /MPTN/etc). There doesn't seem to be any limit on the total size of the backup files. As a result, it can grow too big after some time of extensive usage. Here it grew up to more than 100MB in total (note that log level is 0).

The log file backups seem to grow too fast when samba crashes and spits out a lot of stuff in the log files. Also, the files in the lock directory are sometimes very big and this may create configuration backups enormously big.

I think there should be a limit on the overall size of the backup files as well as on their age. A month and 50 MB seems like a sane default for me. When reaching any of these limits, the oldest log files should be deleted.

Change History (4)

comment:1 by Herwig Bauernfeind, 10 years ago

The functionality is found in the plugin script b4smb.cmd, which could be extended to support your suggested features,

comment:2 by Silvan Scherrer, 9 years ago

Milestone: Utilities/Scripte 1.0.0

comment:3 by Herwig Bauernfeind, 9 years ago

Added KeepGens variable to b4smb.cmd and appropriate code in order to keep a fixed number of generations of logfiles in changeset #886

comment:4 by Herwig Bauernfeind, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.