Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rsync hört nicht mehr auf zu syncen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Thu Jul 11, 2013 8:03 am    Post subject: rsync hört nicht mehr auf zu syncen Reply with quote

Hallo allerseits,

eine Frage zu rsync:
An meinem Raspberry Pi laufen 2 Festplatten, wobei jede Nacht die Änderungen auf der 1 Platte auf die 2. mit rsync gespiegelt werden.
Letztens wollte ich das Skript modifizieren wegen mailversand etc. Dabei mußte ich es ein paarmal mauell starten. Aus unerfindlichen Gründen kopiert seitdem rsync jetzt ein bestimmtes Vereichnis bei jedem Durchlauf, obwohl an den Daten nichts geändert wurde oder wird. Ich habe keine Erklärung dafür.

Hab evtl jemand eine Idee, was das schieflaufen könnte? Die Platten sind i o, die Daten sehen identisch aus.

Grüße
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Thu Jul 11, 2013 11:11 am    Post subject: Reply with quote

eventuell ändert sich die access time (atime) und eventuell wertet rsync diese zeit mit aus.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Thu Jul 11, 2013 11:22 am    Post subject: Reply with quote

firefly wrote:
eventuell ändert sich die access time (atime) und eventuell wertet rsync diese zeit mit aus.


Hast du einen Vorschlag, wie man der Sache auf den Grund gehen könnte? Evtl, die Platten mit "noatime" mounten? Und ich frage mich auch, wieso immer die gleichen Dateien betroffen sind.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Thu Jul 11, 2013 12:55 pm    Post subject: Reply with quote

Dein rsync Aufruf wäre ganz hilfreich.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Thu Jul 11, 2013 12:59 pm    Post subject: Reply with quote

werden diese Dateien auch immer wieder von rsync kopiert, wenn du nur das betroffende Verzeichnis angibst?

Und was sagt ein ls -la im betroffenen Verzeichnis auf beide Festplatten?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Thu Jul 11, 2013 1:46 pm    Post subject: Reply with quote

Die Daten kann ich heute abend liefern. Ich komme von hier leider nicht an den Server ran. Aber vorweg vielen Dank für das Interesse an meinem Problem :wink:
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Thu Jul 11, 2013 8:44 pm    Post subject: Reply with quote

Der rsync Aufruf ist wie folgt:

Code:

rsync -r -v --delete /mnt/usbplatte/Backup/ /mnt/usbplatte2/Backup/ > /tmp/backuplog



ls -la /mnt/usbplatte/Backup/Bilder/Modellflug/Flugtag-Rot2013/
Code:

...
-rw-r--r-- 1 pi pi 4809912 Jul  7 13:28 DSC_6502.JPG
-rw-r--r-- 1 pi pi 4910004 Jul  7 13:28 DSC_6503.JPG
-rw-r--r-- 1 pi pi 4675568 Jul  7 13:28 DSC_6504.JPG
-rw-r--r-- 1 pi pi 4447720 Jul  7 13:28 DSC_6505.JPG
-rw-r--r-- 1 pi pi 3046166 Jul  7 14:21 DSC_6512.JPG
-rw-r--r-- 1 pi pi 3170808 Jul  7 14:21 DSC_6514.JPG
-rw-r--r-- 1 pi pi 3081948 Jul  7 14:22 DSC_6515.JPG
-rw-r--r-- 1 pi pi 3124116 Jul  7 14:22 DSC_6516.JPG
-rw-r--r-- 1 pi pi 3131664 Jul  7 14:22 DSC_6517.JPG
-rw-r--r-- 1 pi pi 4524978 Jul  7 14:31 DSC_6520.JPG
-rw-r--r-- 1 pi pi 4788401 Jul  7 14:31 DSC_6521.JPG
-rw-r--r-- 1 pi pi 4700678 Jul  7 14:31 DSC_6522.JPG
-rw-r--r-- 1 pi pi 3255863 Jul  7 15:27 DSC_6523.JPG
-rw-r--r-- 1 pi pi 3148366 Jul  7 15:27 DSC_6524.JPG
-rw-r--r-- 1 pi pi 3593339 Jul  7 15:27 DSC_6525.JPG
-rw-r--r-- 1 pi pi 3695912 Jul  7 15:27 DSC_6526.JPG
-rw-r--r-- 1 pi pi 3829127 Jul  7 15:27 DSC_6527.JPG
-rw-r--r-- 1 pi pi 2946003 Jul  7 15:28 DSC_6533.JPG
-rw-r--r-- 1 pi pi 3035793 Jul  7 15:28 DSC_6534.JPG
-rw-r--r-- 1 pi pi 3070962 Jul  7 15:31 DSC_6538.JPG
root@raspberrypi:~#


ls -la /mnt/usbplatte2/Backup/Bilder/Modellflug/Flugtag-Rot2013/
Code:

...
-rw-r--r-- 1 root root 4809912 Jul 11 02:13 DSC_6502.JPG
-rw-r--r-- 1 root root 4910004 Jul 11 02:13 DSC_6503.JPG
-rw-r--r-- 1 root root 4675568 Jul 11 02:13 DSC_6504.JPG
-rw-r--r-- 1 root root 4447720 Jul 11 02:13 DSC_6505.JPG
-rw-r--r-- 1 root root 3046166 Jul 11 02:13 DSC_6512.JPG
-rw-r--r-- 1 root root 3170808 Jul 11 02:13 DSC_6514.JPG
-rw-r--r-- 1 root root 3081948 Jul 11 02:13 DSC_6515.JPG
-rw-r--r-- 1 root root 3124116 Jul 11 02:13 DSC_6516.JPG
-rw-r--r-- 1 root root 3131664 Jul 11 02:13 DSC_6517.JPG
-rw-r--r-- 1 root root 4524978 Jul 11 02:13 DSC_6520.JPG
-rw-r--r-- 1 root root 4788401 Jul 11 02:13 DSC_6521.JPG
-rw-r--r-- 1 root root 4700678 Jul 11 02:13 DSC_6522.JPG
-rw-r--r-- 1 root root 3255863 Jul 11 02:13 DSC_6523.JPG
-rw-r--r-- 1 root root 3148366 Jul 11 02:14 DSC_6524.JPG
-rw-r--r-- 1 root root 3593339 Jul 11 02:14 DSC_6525.JPG
-rw-r--r-- 1 root root 3695912 Jul 11 02:14 DSC_6526.JPG
-rw-r--r-- 1 root root 3829127 Jul 11 02:14 DSC_6527.JPG
-rw-r--r-- 1 root root 2946003 Jul 11 02:14 DSC_6533.JPG
-rw-r--r-- 1 root root 3035793 Jul 11 02:14 DSC_6534.JPG
-rw-r--r-- 1 root root 3070962 Jul 11 02:14 DSC_6538.JPG
root@raspberrypi:~#


Ich muß die Ausgabe kürzen, sonst ist es zuviel. usbplatte ist die Platte, die mit nfs beschrieben wird und usbplatte2 die Backup Platte, die von root mittels rsync beschreiben wird. Nur das gelistete Verzeichnis wird immer wieder kopiert. Ansonste befinden sich noch ca 25 GB in dem Backup Verzeichnis.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Thu Jul 11, 2013 8:53 pm    Post subject: Reply with quote

zumindestens das Datum ist unterschiedlich 7 Juli und 11 Juli. Eventuell spielt auch die userid und groupid eine rolle beim sync.
Unter welchem benutzer wird der rsync befehl eigentlich ausgeführt?
Am besten du fügst noch die option hinzu, dass rsync die rechte und benutzer/gruppenIds mit übernimmt.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Thu Jul 11, 2013 10:11 pm    Post subject: Reply with quote

Ich habe den Verdacht, es liegt an dem fehlenden Archive Mode (-a). Offensichtlich habe ich den Fehler schon länger drin, es ist aber nicht aufgefallen, weil keine neuen Daten dazugekommen sind. Ich mußte das Skript neu anlegen, nachdem mein Raspi den Updatetod gestorben ist und nicht mehr bootete. Der Test läut moemtan. Leider dauert das Kopieren recht lange weil es ca. 4,6 GB im Verzeichnis "Flugtag-Rot2013" sind.
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Fri Jul 12, 2013 7:56 am    Post subject: Reply with quote

Ja, der archive Mode was es. Das beinhaltet auch "preserve attributes". Na super, und schon wieder saß der bug vor dem Bildschirm - wie peinlich.
Vorher ist das nicht aufgefallen, weil ich seit längerer Zeit keine neuen Daten auf die Platte geschreiben hatte.

vielen Dank noch
Erdie
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5165

PostPosted: Fri Jul 12, 2013 8:01 am    Post subject: Reply with quote

Am besten du machst gleich ein backup des rsync scripts ;) falls der Raspberry Pi wieder sterben sollte ;)
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum