Changeset 886
- Timestamp:
- May 24, 2015, 10:02:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scripts/smb_init/b4smb.cmd
r844 r886 2 2 Samba Server for eComStation (OS/2) tools 3 3 4 (c) 2007-201 4Herwig Bauernfeind for bww bitwise works GmbH.4 (c) 2007-2015 Herwig Bauernfeind for bww bitwise works GmbH. 5 5 Script: B4SMB.CMD, requires REXX. 6 6 Purpose: This script is executed before the Samba daemons are actually … … 13 13 ArchLogs = 1 /* Move previous logfiles to archive (by Yuri Dario) */ 14 14 DelLogs = 0 /* Remove previous logfiles only */ 15 KeepGens = 5 /* Keep last 5 generations of log files, 0 = all */ 15 16 SaveCfg = 1 /* Save a snapshot of the current Samba configuration */ 16 17 DelTDBs = 1 /* Remove transient .tdb files */ … … 29 30 Archive = SMB_LOGS||'\Archive\'||date('s')||'-'||translate(time('n'),'-',':')||".zip" 30 31 address cmd' zip -jmo9 'Archive' 'SMB_LOGS'\log.?mbd* 'SMB_LOGS'\log.winb*' 32 if KeepGens > 0 then do /* Eventually purge old logfile archives */ 33 ok = SysFileTree(SMB_LOGS||'\Archive\*.zip',logarchs.,"FO") 34 if logarchs.0 > KeepGens then do 35 do I = 1 to (logarchs.0-KeepGens) 36 address cmd' del "'logarchs.I 37 end 38 end 39 end 31 40 end 32 41
Note:
See TracChangeset
for help on using the changeset viewer.