rsync Fehlermeldungen und rsync bleibt hängen

AA0815

Aktives Mitglied
Thread Starter
Dabei seit
19.06.2010
Beiträge
274
Reaktionspunkte
6
Hallo zusammen,

ich möchte gerne ein Time Machine Backup von einer externen auf eine andere externe Festplatte kopieren. Um hier die richtigen Optionen zu finden, habe ich die komplette Manual von rsync durchgelesen und schließlich wie folgt das Script erstellt.

Code:
#!/bin/bash

# Kopiert ein Time Machine Backup auf anderes Laufwerk und überprüft dieses
# anhand von Prüfsummen.
# erstellt von :) am 28.02.2018

###################
# variabler Bereich

#source="/Volumes/Time\ Machine\ Backup/Test\ 1"
#destination="/Volumes/G-DRIVE\ Thunderbolt\ 3"

# -n, --dry-run               perform a trial run with no changes made

#rsync_opt1="-n"

# variabler Bereich Ende
########################

# verwendete rsync Optionen

# -c, --checksum              skip based on checksum, not mod-time & size
# -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
# -r, --recursive             recurse into directories
# -l, --links                 copy symlinks as symlinks
# -p, --perms                 preserve permissions
# -t, --times                 preserve modification times
# -g, --group                 preserve group
# -o, --owner                 preserve owner (super-user only)
# -D                          same as --devices --specials
# -H, --hard-links            preserve hard links
# -E, --executability         preserve executability
# -A, --acls                  preserve ACLs (implies -p)
# -X, --xattrs                preserve extended attributes
# -N, --crtimes               preserve create times (newness)

rsync_opt2="-caHEAXN"

# --devices                   preserve device files (super-user only)
# --specials                  preserve special files
# --fileflags                 preserve file-flags (aka chflags)
# --delete                    delete extraneous files from dest dirs
### --stats                     give some file-transfer stats
# --rsync-path=PROGRAM        specify the rsync to run on remote machine
# --log-file=FILE             log what we're doing to the specified FILE

# -x, --one-file-system       don't cross filesystem boundaries

echo "Kopiere Time Machine Backup ..."
echo

rsync $rsync_opt1 $rsync_opt2 --devices --specials --fileflags --delete \
--rsync-path="sudo rsync" \
--log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log \
/Volumes/Time\ Machine\ Backup/Backups.backupdb /Volumes/G-DRIVE\ Thunderbolt\ 3

#$source $destination

echo
echo "Time Machine Backup erfolgreich kopiert"

exit 0

Das Backup scheint ziemlich komplett zu sein, allerdings erhalte ich Fehlermeldungen und das Script bleibt hängen.

Code:
Kopiere Time Machine Backup ...

rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac": Operation not permitted (1)
rsync: symlink "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/Latest" -> "2018-03-06-221601" failed: Operation not permitted (1)
rsync: recv_generator: mkdir "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-04-11-130912" failed: Operation not permitted (1)
*** Skipping any contents from this failed directory ***
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.BackupMachineAddress") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.HasRecoverySet") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.HostUUID") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.ModelID") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.RecoveryPartitionLastModificationDate") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.RecoveryPartitionVolumeUUID") failed: Operation not permitted (1)
rsync: rsync_xal_set: lsetxattr(""/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac"","com.apple.backupd.RecoverySetName") failed: Operation not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac": Operation not permitted (1)
rsync: stat "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-04-11-130912" failed: No such file or directory (2)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: recv_generator: mkdir "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-05-01-173706" failed: Operation not permitted (1)
*** Skipping any contents from this failed directory ***
rsync: stat "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-05-01-173706" failed: No such file or directory (2)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: unpack_smb_acl: sys_acl_get_info(): Undefined error: 0 (0)
rsync: recv_generator: mkdir "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-05-21-135051" failed: Operation not permitted (1)
*** Skipping any contents from this failed directory ***
rsync: stat "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/André Althoffs iMac/2016-05-21-135051" failed: No such file or directory (2)
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(657) [sender=3.0.8]

Time Machine Backup erfolgreich kopiert

Ich verwende die neueste Version von rsync.

Woran kann das liegen? Sind die Optionen richtig gesetzt, so dass Quelle und Ziel nachher absolut identisch sind?
 
Okay, da dachte ich, dass ich die aktuelle Version habe. Zumindest habe ich mir rsync über brew installiert. http://brewformulas.org/Rsync

Der Tipp war super! Danke!

Code:
iMac:~ andre$ brew install rsync
==> Downloading https://homebrew.bintray.com/bottles/rsync-3.1.3_1.high_sierra.b
==> Downloading from https://akamai.bintray.com/c7/c79e5b808b6f3925cfb27d38f46b1
######################################################################## 100.0%
==> Pouring rsync-3.1.3_1.high_sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/rsync
Target /usr/local/bin/rsync
already exists. You may want to remove it:
  rm '/usr/local/bin/rsync'

To force the link and overwrite all conflicting files:
  brew link --overwrite rsync

To list all files that would be deleted:
  brew link --overwrite --dry-run rsync

Possible conflicting files are:
/usr/local/bin/rsync
/usr/local/share/man/man1/rsync.1
/usr/local/share/man/man5/rsyncd.conf.5
==> Summary
  /usr/local/Cellar/rsync/3.1.3_1: 9 files, 756.2KB
 
Zuletzt bearbeitet:
Zurück
Oben Unten