Hi,
ob mir noch jemand rechtzeitig kurz erklären kann wie ich automatisch (crontab) alle logifles als archiv packen und löschen lasse und somit um 00:00 neue logifles beginnen, die am ende des monats wieder automatisch gepackt und unter dem filename logs_<monat_jahr>.tar abgespeichert werden?
ich habe mir so ein aenliches Script geschrieben. Ich schicks Dir einfach mal. [global] workgroup = privat guest account = nobody printing = bsd printcap name = /etc/printcap load printers = yes log file = /var/log/samba.log.%m os level = 2 security = user keep alive = 30 [homes] comment = Heimatverzeichnis browseable = yes read only = no hide dot files = yes create mask = 0700 [pfadi] comment = Pfadi Verzeichnis path = /home/pfadi public = no writeable = yes printable = no write list = @pfadi hide dot files = yes create mask = 0775 force group = pfadi [pfarrei] comment = Pfarrei Verzeichnis path = /home/pfarrei public = no writeable = yes write list = @pfarrei hide dot files = yes create mask = 0660 force group = pfarrei [homepages] comment = Homepages path = /home/0/public_html public = yes writeable = yes printable = no write list = @www hide dot files = yes create mask = 0664 force group = www [faxadmin] comment = Fax path = /home/faxadmin public = yes printable = no writeable = yes hide dot files = yes create mask = 0777 [programme] comment = Netzprogramme path = /usr/global writeable =yes printable = no public = yes create mask = 0777 [profile] comment = Benutzer Profile path = /home/profile writeable = yes public = yes hide dot files = yes create mask = 0777 [backup] path = /root/backup writeable = yes public = no write list = @backup ; The following share gives all users access to the Server's CD drive, ; assuming it is mounted under /cd. To enable this share, please remove ; the semicolons before the lines ; [cdrom] comment = Linux CD-ROM path = /cdrom2 public = yes locking = yes writeable = no read list = @users [cdrom2] comment = CD-ROm path=/cdrom1 public = yes locking = yes writeable = no ;[printers] ; comment = All Printers ; browseable = yes ; printable = yes ; public = no ; read only = yes ; create mode = 0700 ; directory = /tmp ; guest ok = yes [fax] comment = Fax postscript = yes print command = /usr/bin/printfax.pl %I 0 %m ; rm printable = yes writable = no path = /usr/spool/samba public = yes guest ok = yes bye Martin Sauer ------------------------------------------------------------ E-Mail: msauer@gmx.net WWW: <A HREF="http://tel.de/089844549"><A HREF="http://tel.de/089844549</A">http://tel.de/089844549</A</A>> -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.de schicken, mit dem Text: unsubscribe suse-linux
participants (1)
-
msauer@gmx.net