Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

24.04.2006, 19:23

[gelöst]Fehler bei backup script

Moin,

hab mir eben folgendes script für Backups erstellt

Quellcode

1
2
3
4
5
6
7
8
#!/bin/bash 
cd /
mount /boot 
DATE="$( date +%Y-%m-%d )" 
dest=/mnt/share/backup-$DATE.tar.gz
src=/
tar -czvf  $dest $src --exclude=/mnt/* --exclude=/proc/* --exclude=/dev/* --exclude=/home/markus/mukke/* --exclude=/opt/enemy-territory/* --exclude=/usr/portage/distfiles/* --exclude=/tmp/* --exclude=/home/markus/rar/* 
umount /boot 


nach einiger Zeit kommt dann folgende Fehler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
........
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/class: File shrank by 4087 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/subsystem_device
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/subsystem_device: File shrank by 4089 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/subsystem_vendor
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/subsystem_vendor: File shrank by 4089 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/device
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/device: File shrank by 4089 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/vendor
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/vendor: File shrank by 4089 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/resource
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/resource: File shrank by 3697 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/power/
/sys/devices/pci0000:00/0000:00:00.0/power/wakeup
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/pci0000:00/0000:00:00.0/power/state
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/pci0000\:00/0000\:00\:00.0/uevent: Cannot open: Permission denied
/sys/devices/pci0000:00/power/
/sys/devices/pci0000:00/power/wakeup
tar: /sys/devices/pci0000\:00/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/pci0000:00/power/state
tar: /sys/devices/pci0000\:00/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/pci0000\:00/uevent: Cannot open: Permission denied
/sys/devices/system/
/sys/devices/system/acpi/
/sys/devices/system/acpi/acpi0/
/sys/devices/system/irqrouter/
/sys/devices/system/irqrouter/irqrouter0/
/sys/devices/system/ioapic/
/sys/devices/system/lapic/
/sys/devices/system/lapic/lapic0/
/sys/devices/system/i8237/
/sys/devices/system/i8237/i82370/
/sys/devices/system/i8259/
/sys/devices/system/i8259/i82590/
/sys/devices/system/timer/
/sys/devices/system/timer/timer0/
/sys/devices/system/cpu/
/sys/devices/system/cpu/cpu0/
/sys/devices/platform/
/sys/devices/platform/serial8250/
/sys/devices/platform/serial8250/driver
/sys/devices/platform/serial8250/tty:ttyS3
/sys/devices/platform/serial8250/tty:ttyS2
/sys/devices/platform/serial8250/tty:ttyS1
/sys/devices/platform/serial8250/tty:ttyS0
/sys/devices/platform/serial8250/bus
/sys/devices/platform/serial8250/power/
/sys/devices/platform/serial8250/power/wakeup
tar: /sys/devices/platform/serial8250/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/platform/serial8250/power/state
tar: /sys/devices/platform/serial8250/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/platform/serial8250/uevent: Cannot open: Permission denied
/sys/devices/platform/i8042/
/sys/devices/platform/i8042/serio1/
/sys/devices/platform/i8042/serio1/driver
/sys/devices/platform/i8042/serio1/input:input0
/sys/devices/platform/i8042/serio1/softraw
tar: /sys/devices/platform/i8042/serio1/softraw: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/softrepeat
tar: /sys/devices/platform/i8042/serio1/softrepeat: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/set
tar: /sys/devices/platform/i8042/serio1/set: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/scroll
tar: /sys/devices/platform/i8042/serio1/scroll: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/extra
tar: /sys/devices/platform/i8042/serio1/extra: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/id/
/sys/devices/platform/i8042/serio1/id/extra
tar: /sys/devices/platform/i8042/serio1/id/extra: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/id/id
tar: /sys/devices/platform/i8042/serio1/id/id: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/id/proto
tar: /sys/devices/platform/i8042/serio1/id/proto: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/id/type
tar: /sys/devices/platform/i8042/serio1/id/type: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/bus
/sys/devices/platform/i8042/serio1/bind_mode
tar: /sys/devices/platform/i8042/serio1/bind_mode: File shrank by 4091 bytes; padding with zeros
tar: /sys/devices/platform/i8042/serio1/drvctl: Cannot open: Permission denied
/sys/devices/platform/i8042/serio1/modalias
tar: /sys/devices/platform/i8042/serio1/modalias: File shrank by 4073 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/description
tar: /sys/devices/platform/i8042/serio1/description: File shrank by 4081 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/power/
/sys/devices/platform/i8042/serio1/power/wakeup
tar: /sys/devices/platform/i8042/serio1/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/platform/i8042/serio1/power/state
tar: /sys/devices/platform/i8042/serio1/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/platform/i8042/serio1/uevent: Cannot open: Permission denied
/sys/devices/platform/i8042/serio0/
/sys/devices/platform/i8042/serio0/input:ts0
/sys/devices/platform/i8042/serio0/input:mouse0
/sys/devices/platform/i8042/serio0/driver
/sys/devices/platform/i8042/serio0/resetafter
tar: /sys/devices/platform/i8042/serio0/resetafter: File shrank by 4094 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/resolution
tar: /sys/devices/platform/i8042/serio0/resolution: File shrank by 4092 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/rate
tar: /sys/devices/platform/i8042/serio0/rate: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/protocol
tar: /sys/devices/platform/i8042/serio0/protocol: File shrank by 4088 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/input:input1
/sys/devices/platform/i8042/serio0/id/
/sys/devices/platform/i8042/serio0/id/extra
tar: /sys/devices/platform/i8042/serio0/id/extra: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/id/id
tar: /sys/devices/platform/i8042/serio0/id/id: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/id/proto
tar: /sys/devices/platform/i8042/serio0/id/proto: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/id/type
tar: /sys/devices/platform/i8042/serio0/id/type: File shrank by 4093 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/bus
/sys/devices/platform/i8042/serio0/bind_mode
tar: /sys/devices/platform/i8042/serio0/bind_mode: File shrank by 4091 bytes; padding with zeros
tar: /sys/devices/platform/i8042/serio0/drvctl: Cannot open: Permission denied
/sys/devices/platform/i8042/serio0/modalias
tar: /sys/devices/platform/i8042/serio0/modalias: File shrank by 4073 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/description
tar: /sys/devices/platform/i8042/serio0/description: File shrank by 4081 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/power/
/sys/devices/platform/i8042/serio0/power/wakeup
tar: /sys/devices/platform/i8042/serio0/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/platform/i8042/serio0/power/state
tar: /sys/devices/platform/i8042/serio0/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/platform/i8042/serio0/uevent: Cannot open: Permission denied
/sys/devices/platform/i8042/bus
/sys/devices/platform/i8042/driver
/sys/devices/platform/i8042/power/
/sys/devices/platform/i8042/power/wakeup
tar: /sys/devices/platform/i8042/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/platform/i8042/power/state
tar: /sys/devices/platform/i8042/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/platform/i8042/uevent: Cannot open: Permission denied
/sys/devices/platform/power/
/sys/devices/platform/power/wakeup
tar: /sys/devices/platform/power/wakeup: File shrank by 4095 bytes; padding with zeros
/sys/devices/platform/power/state
tar: /sys/devices/platform/power/state: File shrank by 4094 bytes; padding with zeros
tar: /sys/devices/platform/uevent: Cannot open: Permission denied
/portage-20060409.tar.bz2
/.lesshst
/.bash_history
/dest
tar: Error exit delayed from previous errors


Hat jemand einen Tip für mich wo ran das leigen kann?


LG evert

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »evert« (25.04.2006, 19:09)


2

24.04.2006, 19:25

Das liegt daran, dass du den Ordner /sys auch nicht backuppen darfst. :D

3

24.04.2006, 19:29

Alles klar werds testen.

Was liegt in /sys denn genau drin? wird es fürs Backup nicht benötigt?

LG evert

4

24.04.2006, 19:35

Nö, der Inhalt von /sys wird wie /dev und /proc jedesmal beim Starten des Kernels erstellt. Oder hast du je 'ne Anleitung zur Konfiguration von Dateien in diesen Ordnern geseh'n? ;)

5

24.04.2006, 19:44

ok das stimmt natürlich.

Dann werd ich jetzt mal ein Backup machen und dann bissel rumspielen *G*

LG && THX evert

6

24.04.2006, 20:06

Wenn das Backup geklappt hat, kannst du's auf gelöst setzen... :]

7

25.04.2006, 14:14

Backup hat soweit geklappt.
Hat noch einer ne Idee wie man das ganze inkrementell machen könnte?

LG evert

8

25.04.2006, 18:05

tar --help:

-u, --update only append files newer than copy in archive


ähm, die option -p is vielleicht auch nicht schlecht, damit bleiben dir die berechtigungen erhalten ;)
... nur ein weiterer tag im leben eines naren ... :P

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »capoeira« (25.04.2006, 18:10)


9

25.04.2006, 18:07

Ach, DAS meint er mit inkrementell... *lol*

10

25.04.2006, 19:08

Ok besten dank.


LG evert

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »evert« (26.04.2006, 01:22)