les anciens fichiers de log sont compresse est mis dans le meme chemin que le fichier log courent, avec un numero sous forme de date
exp /var/log/messages201323.xz
linux-baou:/var/log # ls -l |grep messages
-rw-r--r-- 1 root root 48 Dec 31 17:29 localmessages
-rw-r----- 1 root root 540987 Feb 28 09:41 messages
-rw-r----- 1 root root 208632 Dec 31 17:14 messages-20121231.xz
-rw-r----- 1 root root 278704 Jan 3 17:14 messages-20130103.xz
-rw-r----- 1 root root 261780 Jan 6 17:13 messages-20130106.xz
-rw-r----- 1 root root 408808 Jan 7 17:14 messages-20130107.xz
-rw-r----- 1 root root 517244 Jan 8 17:13 messages-20130108.xz
-rw-r----- 1 root root 325448 Jan 18 17:08 messages-20130118.xz
-rw-r----- 1 root root 350216 Jan 21 17:15 messages-20130121.xz
-rw-r----- 1 root root 231892 Jan 24 17:14 messages-20130124.xz
-rw-r----- 1 root root 156988 Feb 3 17:14 messages-20130203.xz
-rw-r----- 1 root root 191896 Feb 15 08:58 messages-20130215.xz
-rw-r----- 1 root root 266860 Feb 18 08:59 messages-20130218.xz
-rw-r----- 1 root root 212624 Feb 21 08:59 messages-20130221.xz
-rw-r----- 1 root root 234128 Feb 26 09:00 messages-20130226.xz
-rw-r----- 1 root root 892356 Feb 27 09:00 messages-20130227.xz
-rwxrwx--- 1 root analyselog 971028 Feb 28 08:59 messages-20130228.xz
linux-baou:/var/log #
exp /var/log/messages201323.xz
linux-baou:/var/log # ls -l |grep messages
-rw-r--r-- 1 root root 48 Dec 31 17:29 localmessages
-rw-r----- 1 root root 540987 Feb 28 09:41 messages
-rw-r----- 1 root root 208632 Dec 31 17:14 messages-20121231.xz
-rw-r----- 1 root root 278704 Jan 3 17:14 messages-20130103.xz
-rw-r----- 1 root root 261780 Jan 6 17:13 messages-20130106.xz
-rw-r----- 1 root root 408808 Jan 7 17:14 messages-20130107.xz
-rw-r----- 1 root root 517244 Jan 8 17:13 messages-20130108.xz
-rw-r----- 1 root root 325448 Jan 18 17:08 messages-20130118.xz
-rw-r----- 1 root root 350216 Jan 21 17:15 messages-20130121.xz
-rw-r----- 1 root root 231892 Jan 24 17:14 messages-20130124.xz
-rw-r----- 1 root root 156988 Feb 3 17:14 messages-20130203.xz
-rw-r----- 1 root root 191896 Feb 15 08:58 messages-20130215.xz
-rw-r----- 1 root root 266860 Feb 18 08:59 messages-20130218.xz
-rw-r----- 1 root root 212624 Feb 21 08:59 messages-20130221.xz
-rw-r----- 1 root root 234128 Feb 26 09:00 messages-20130226.xz
-rw-r----- 1 root root 892356 Feb 27 09:00 messages-20130227.xz
-rwxrwx--- 1 root analyselog 971028 Feb 28 08:59 messages-20130228.xz
linux-baou:/var/log #
Aucun commentaire:
Enregistrer un commentaire