Ticket #17478: creating_syslogs_archive

File creating_syslogs_archive, 5.5 KB (added by KitsunePrefecture, 3 years ago)

How I created syslogs archive, and some command issued in terminal to help that way

Line 
1~> find syslog / 2>/dev/null|egrep syslog|xargs -I {} tar -cv -f ./logs__Haiku_32bit__DELL_Inspiron_9100.tar {};
2tar: Removing leading `/' from member names
3/Haiku1/system/var/log/syslog
4tar: Removing leading `/' from member names
5/Haiku1/system/var/log/syslog.old
6tar: Removing leading `/' from member names
7/boot/system/var/log/syslog
8tar: Removing leading `/' from member names
9/boot/system/var/log/syslog.old
10tar: Removing leading `/' from member names
11/boot/system/servers/syslog_daemon
12~> tar -cv -f ./logs__Haiku_32bit__DELL_Inspiron_9100.tar /Haiku1/system/var/log/syslog /Haiku1/system/var/log/syslog.old /boot/system/var/log/syslog /boot/system/var/log/syslog.old /boot/system/servers/syslog_daemon
13tar: Removing leading `/' from member names
14/Haiku1/system/var/log/syslog
15tar: Removing leading `/' from hard link targets
16/Haiku1/system/var/log/syslog.old
17/boot/system/var/log/syslog
18/boot/system/var/log/syslog.old
19/boot/system/servers/syslog_daemon
20~> tar -tv -f ./logs__Haiku_32bit__DELL_Inspiron_9100.tar
21-rw-r--r-- user/root 200564 2021-12-16 23:17 Haiku1/system/var/log/syslog
22-rw-r--r-- user/root 524315 2021-12-16 22:40 Haiku1/system/var/log/syslog.old
23-rw-r--r-- user/root 299465 2022-01-02 02:39 boot/system/var/log/syslog
24-rw-r--r-- user/root 524328 2022-01-02 01:38 boot/system/var/log/syslog.old
25-r-xr-xr-x user/root 40635 2021-12-16 08:38 boot/system/servers/syslog_daemon
26~> ls -ltr
27total 1588
28drwxr-xr-x 1 user root 2048 dec. 16 08:44 mail
29dr-xr-xr-x 1 user root 0 dec. 16 21:01 config
30drwxr-xr-x 1 user root 2048 dec. 16 22:46 queries
31drwxr-xr-x 1 user root 2048 dec. 16 23:09 public_html
32-rw-r--r-- 1 user root 0 dec. 16 23:35 install-wifi-firmwares.sh
33drwxr-xr-x 1 user root 2048 dec. 16 23:42 Desktop
34-rw-r--r-- 1 user root 1597440 jan. 2 02:39 logs__Haiku_32bit__DELL_Inspiron_9100.tar
35~> du -h logs__Haiku_32bit__DELL_Inspiron_9100.tar
361,6M logs__Haiku_32bit__DELL_Inspiron_9100.tar
37~> id
38uid=0(user) gid=0(root) groups=0(root),101(party)
39~> uname -a
40Haiku DELL_Inspiron_9100__HaiQ_Legacy 1 hrev55733 Dec 16 2021 08:30:42 BePC x86 Haiku
41~> top
42
43 THID TOTAL USER KERNEL %CPU TEAM NAME THREAD NAME
44 467 79.33 73.00 5.00 0.8 app_server w:446:Asztalsáv
45 766 47.15 45.00 1.00 0.5 app_server w:761:Terminál: home: top
46 542 26.59 0.00 26.00 0.3 Deskbar PowerStatusThread
47 548 26.00 16.00 9.00 0.3 Deskbar w>Asztalsáv
48 454 25.55 14.00 11.00 0.3 app_server a:446:x-vnd.Be-TSKB
49 770 21.31 14.00 6.00 0.2 Terminal w>Terminál: home: top
50 473 17.00 13.00 3.00 0.2 app_server event loop
51 462 15.26 11.00 3.00 0.2 input_server _input_server_event_loop_
52 543 13.83 6.00 6.00 0.1 Deskbar Expando Window Watcher
53 474 11.63 9.00 2.00 0.1 app_server cursor loop
54 498 8.60 4.00 3.00 0.1 input_server PS/2 Touchpad 1 watcher
55 451 6.30 4.00 1.00 0.1 input_server input_server
56 377 6.09 4.00 1.00 0.1 registrar timer_thread
57 331 5.24 0.00 5.00 0.1 kernel_team media checker
58 1183 4.77 2.00 1.00 0.0 top top
59 507 3.63 1.00 1.00 0.0 media_addon_serv multi_audio audio output
60 505 2.65 1.00 0.00 0.0 media_addon_serv Auich ICH control
61 503 2.52 1.00 1.00 0.0 media_addon_serv Audio Mixer control
62 601 2.21 1.00 1.00 0.0 media_addon_serv Yeah baby, very shagadelic
63 345 1.39 0.00 1.00 0.0 kernel_team scsi_bus_service
64 9 1.37 0.00 1.00 0.0 kernel_team page daemon
65 413 1.32 0.00 1.00 0.0 kernel_team fbsd callout
66 769 1.08 1.00 0.00 0.0 Terminal EscParse
67 417 0.76 0.00 0.00 0.0 kernel_team ethernet link state checker
68 1137 0.67 0.00 0.00 0.0 StyledEdit w>StyledEdit: Megnyitás
69 471 0.54 0.00 0.00 0.0 Tracker w>Asztal
70 1148 0.51 0.00 0.00 0.0 StyledEdit w>creating_syslogs_archive
71 376 0.49 0.00 0.00 0.0 registrar message deliverer
72 326 0.44 0.00 0.00 0.0 kernel_team ehci finish thread
73 329 0.44 0.00 0.00 0.0 kernel_team usb explore
74 328 0.38 0.00 0.00 0.0 kernel_team ehci cleanup thread
75 442 0.34 0.00 0.00 0.0 Tracker Tracker
76 374 0.29 0.00 0.00 0.0 registrar roster
77 562 0.28 0.00 0.00 0.0 Tracker w>Nyomkövető állapota
78 466 0.26 0.00 0.00 0.0 media_addon_serv media_addon_server
79 472 0.23 0.00 0.00 0.0 input_server AddOnMonitor
80 461 0.23 0.00 0.00 0.0 app_server a:451:x-vnd.Be-input_server
81 583 0.22 0.00 0.00 0.0 Tracker TrackerTaskLoop
82------ 337.00 231.00 105.00 3.4% TOTAL (96.4% idle time, 0.2% unknown)
83
84--> df -h
85 Mount Type Total Free Flags Device
86----------------- --------- --------- --------- ------- ------------------------
87/boot bfs 115.9 GiB 113.3 GiB QAM-P-W /dev/disk/usb/0/0/1
88/boot/system packagefs 4.0 KiB 4.0 KiB QAM-P--
89/boot/home/config packagefs 4.0 KiB 4.0 KiB QAM-P--
90/Haiku1 bfs 600.0 MiB 38.1 MiB QAM-P-W /dev/disk/usb/0/0/0
91~>
92
93~> lsblk
94bash: lsblk: parancs nem található
95~> lsusb
96bash: lsusb: parancs nem található
97~> lspci
98bash: lspci: parancs nem található
99~>
100
101
102
103