cp/rsync von Timemachine zum Rechner

pfannkuchen2001

Aktives Mitglied
Thread Starter
Dabei seit
17.02.2006
Beiträge
2.600
Reaktionspunkte
48
Hi,

ich würde gern von einem TM-Backup auf einen Rechner kopieren. wenn ich das mit cp mache, werden die ACL Berechtigungen m.E. nicht mikopiert. also dachte ich

rsync -rtlA macht was ich will. Gem. man page ist -A preserve ACL. Nur bekomme ich leider das hier:

rsync -rtlA /Users/user/Desktop/asdf /Users/user/Desktop/asdf\ 2
rsync: -rtlA: unknown option
rsync error: syntax or usage error (code 1) at /System/Volumes/Data/SWE/macOS/BuildRoots/5b2e67f8af/Library/Caches/com.apple.xbs/Sources/rsync/rsync-55/rsync/main.c(1337) [client=2.6.9]

Was ist das Problem?

Gruß und Dank!
 
EDIT

mit neuem rsync vom brew funktionierts!!
Leider scheint das von OSX mitgelieferte rsync uralt zu sein:

Code:
user@MB-Air ~ % /opt/homebrew/bin/rsync --version
rsync  version 3.2.3  protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, no atimes,
    batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
    symtimes, no prealloc, stop-at, crtimes, file-flags
Optimizations:
    no SIMD, no asm, openssl-crypto
Checksum list:
    xxh128 xxh3 xxh64 (xxhash) md5 md4 none
Compress list:
    zstd lz4 zlibx zlib none

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

user@MB-Air ~ % /usr/bin/rsync --version
rsync  version 2.6.9  protocol version 29
Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
              inplace, IPv6, 64-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.
user@MB-Air ~ %

jetzt funktioniert erstmal -A

Gruß
 
Der Versionstext ist identisch. Du hast das rsync jeweils mit vollem Pfad aufgerufen?
 
Warum nutzt du nicht cp -p?
Will rsync vielleicht -r -t -l -A?
 
  • Gefällt mir
Reaktionen: pfannkuchen2001 und dg2rbf
Leider scheint das von OSX mitgelieferte rsync uralt zu sein:
leider ja und auch meilenweit hinter der Leistungsfähigkeit des rsync aus aktuellen Linux Distris hinterher. Daher war es völlig richtig das von Homebrew zu verwenden!
 
  • Gefällt mir
Reaktionen: dg2rbf
Der Versionstext ist identisch. Du hast das rsync jeweils mit vollem Pfad aufgerufen?
Sorry, hatte ganz kurz den Falschen Text reinkopiert.

Warum nutzt du nicht cp -p?
Weil cp -p nicht ACLs setzt.
Will rsync vielleicht -r -t -l -A?
hmmm ;) du hast (mal wieder) Recht! Das funktioniert (warum auch immer)- jedenfalls bekomme ich erstmal kein Syntaxfehler...

ich frage das hier auch eigentlich nur weil ich hierrauf eine Antwort versuche zu finden:
https://www.macuser.de/threads/fotos-bibliothek-aus-timemachine.895015/

Gruß und Dank!
 
Hmm... schonwieder hast du recht gehabt!
Ich sollte aufhören im Internet man Pages zu lesen und nicht die Versionen zu vergleichen.
Ok. Dann ist denke ich hier das Thema beendet. :/
 
Vielleicht doch noch kurz ne frage zu dem Timemachine plan den ich hier hab:
Macht Timemachine irgendwas komisches, wenn es Daten ablegt auf dem Backupmedium? - also kommt 100% das gleiche dabei raus, wenn ich es zurückkopiere mit cp -rfp oder eben rsync?

Gruß
 
Ist das HFS+?
Dann musst du das mit den Hardlinks beachten.
Die sollten dann als Datei kopiert werden und nicht als Link.
 
Ist das HFS+?
Dann musst du das mit den Hardlinks beachten.
Die sollten dann als Datei kopiert werden und nicht als Link.
das BackupVolume ist APFS, die platte auf die Rekonstruiert wird ist (jetzt) HFS+ Journaled / Case Sensitive

wenn ich die man page richtig verstehe, macht rsync ohne die Option -H aus Hardlinks "richtige" dateien:

Code:
       --hard-links, -H
              This tells rsync to look for hard-linked files in the source and link
              together the corresponding files on the destination.  Without this option,
              hard-linked files in the source are treated as though they were separate
              files.
Ich kopiere grad ohne die option -H

Gruß
 
Müsste ich das nicht mit ls -ali erkennen?

wenn ich timemachine und "original" vergleiche, dann sieht das erstmal sehr ähnlich aus. aus:
nur sehen die Berechtigungen nicht so 100% gleich aus.

Code:
user@MB-Air / % ls -ali /Volumes/.timemachine/58A00712-B97C-408B-8A9C-B289FBA52238/2021-11-22-142357.backup/2021-11-22-142357.backup/Daten/Studium/BA\ Bachelor/Grasshopper
total 23160
1214784 drwxrwxrwx@  22 user  staff       704  6 Jan  2017 .
1212806 drwxrwxrwx@  21 user  staff       672  6 Jan  2017 ..
1214785 -rwxrwxrwx@   1 user  staff      6148 16 Sep  2018 .DS_Store
1214786 -rwxrwxrwx+   1 user  staff     32100  6 Jan  2017 3DIsovists.gh
1214807 -rwxrwxrwx+   1 user  staff      6804  6 Jan  2017 streamtest.gh
1214808 drwxrwxrwx@ 615 user  staff     19680  6 Jan  2017 testfiles
1215422 -rwxrwxrwx+   1 user  staff  11410923  6 Jan  2017 testfiles.zip
1215423 -rwxrwxrwx+   1 user  staff     11616  6 Jan  2017 trampoline.gh

user@MB-Air / % ls -ali /Volumes/Daten/Studium/BA\ Bachelor/Grasshopper
total 23216
573254 drwxrwxrwx   22 user  staff       748  6 Jan  2017 .
571296 drwxrwxrwx   21 user  staff       714  6 Jan  2017 ..
573878 -rwxrwxrwx@   1 user  staff      6148 16 Sep  2018 .DS_Store
573879 -rwxrwxrwx    1 user  staff     32100  6 Jan  2017 3DIsovists.gh
573891 -rwxrwxrwx    1 user  staff      6804  6 Jan  2017 streamtest.gh
573263 drwxrwxrwx  615 user  staff     20910  6 Jan  2017 testfiles
573892 -rwxrwxrwx    1 user  staff  11410923  6 Jan  2017 testfiles.zip
573893 -rwxrwxrwx    1 user  staff     11616  6 Jan  2017 trampoline.gh
user@MB-Air / %

was macht das @ und das + da in den Berechtigungen?

Gruß
 
Die bedeuten, daß erweiterte Rechte und ACL gesetzt sind.
 
  • Gefällt mir
Reaktionen: pfannkuchen2001
Was macht Timemachine da?
bzw. wie bekomme ich heraus was diese erweitereten Rechte bedeuten?
ich hab mal das hier probiert:

Code:
user@MB-Air ~ % ls -alie /Volumes/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
42498 -rwxr-xr-x+ 1 user  staff  20931584 16 Feb  2021 /Volumes/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown

user@MB-Air ~ % ls -alie /Volumes/.timemachine/58A00712-B97C-408B-8A9C-B289FBA52238/2021-12-22-140209.backup/2021-12-22-140209.backup/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
4560912 -rwxr-xr-x@ 1 user  staff  20931584 16 Feb  2021 /Volumes/.timemachine/58A00712-B97C-408B-8A9C-B289FBA52238/2021-12-22-140209.backup/2021-12-22-140209.backup/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown

Das sieht erstmal genau gleich aus, bis auf eben das + und das @

Gruß
 
du solltest die mit
Code:
ls -le
ansehen können.

Edit: das hast du ja schon selbst gefunden...
 
Das @ sind Metadaten.
ls -l@
Zeigt die.
 
  • Gefällt mir
Reaktionen: pfannkuchen2001 und ruerueka
Hm! das sieht dann schon anders aus:

Code:
ls -alie@ /Volumes/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw                                                                                                   
42498 -rwxr-xr-x+ 1 johannes  staff  20931584 16 Feb  2021 /Volumes/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown


ls -alie@ /Volumes/.timemachine/58A00712-B97C-408B-8A9C-B289FBA52238/2021-12-22-140209.backup/2021-12-22-140209.backup/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
4560912 -rwxr-xr-x@ 1 johannes  staff  20931584 16 Feb  2021 /Volumes/.timemachine/58A00712-B97C-408B-8A9C-B289FBA52238/2021-12-22-140209.backup/2021-12-22-140209.backup/Fotos/Fotos-Mediathek.photoslibrary/originals/4/440FFB81-1242-415A-A505-E9203810F58A.arw
    com.apple.assetsd.UUID          16
    com.apple.assetsd.addedDate          50
    com.apple.assetsd.assetType           2
    com.apple.assetsd.avalanche.type           2
    com.apple.assetsd.creatorBundleID          16
    com.apple.assetsd.customCreationDate          50
    com.apple.assetsd.dbRebuildUuid          36
    com.apple.assetsd.deferredProcessing           2
    com.apple.assetsd.favorite           2
    com.apple.assetsd.grouping.state           8
    com.apple.assetsd.hidden           2
    com.apple.assetsd.importedBy           2
    com.apple.assetsd.originalFilename          21
    com.apple.assetsd.publicGlobalUUID          36
    com.apple.assetsd.timeZoneName          13
    com.apple.assetsd.timeZoneOffset           4
    com.apple.assetsd.trashed           2
    com.apple.assetsd.videoComplementVisibility           2
    com.apple.quarantine          28
 0: group:everyone deny write,delete,append,writeattr,writeextattr,chown

das wird mir nun zu kompliziert ;) ich will einfach nur etwas aus dem Timemachine wiederherstellen was dann genau so ist wie es vorher auf der Platte lag. arrrgh.
 
Zurück
Oben Unten