Re: rsync time machine backup permissions

2018-04-04 Thread Dave Gordon via rsync
On 03/04/18 18:08, Michael wrote:
> On 2018-04-03, at 4:05 AM, Dave Gordon via rsync  
> wrote:
> 
>> On 20/03/18 05:44, Andre Althoff via rsync wrote:
>>> That doesn’t work too. :-(
>>>
>>> Last login: Mon Mar 19 19:18:16 on console
>>> iMac:~ andre$ mount
>>> /dev/disk0s2 on / (hfs, local, journaled)
>>> devfs on /dev (devfs, local, nobrowse)
>>> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
>>> map auto_home on /home (autofs, automounted, nobrowse)
>>> /dev/disk2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
>>> journaled, noowners)
>>
>> Maybe the "noowners" is the problem?
>> Try remounting the drive without this option?
>>
>> .Dave.
>
> Time Machine will enable ownership on the drive the first time it
> starts up.
>
> The first thing it does when it creates the backup directory is to
> enable ownership on the drive. I've seen this happen repeatedly (it's
> actually the easiest way I know of to enable ownership on drive).

But Andre is not using Time Machine on this drive, and "noowners" here
is an attribute of the mount, not the device. It's supposed to make the
filesystem *ignore* the actual ownership of files on the drive and treat
the contents as though they all belonged to the user; but maybe it also
disallows attempts to actually set ownership (because it would be
confusing?).

So remounting it without this option would definitely be worth trying,
even if only to eliminate it as a source of confusion.

.Dave.


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-04-04 Thread Dave Gordon via rsync
On 20/03/18 05:51, Michael via rsync wrote:
> What is the order that rsync uses to set permissions?
> 
> Time Machine directories have ACL permissions that basically prohibit making 
> any changes of any kind. In order to make a backup of the directory, you 
> would need to set those permissions after copying everything in the 
> subdirectories.
> 
> Is rsync smart enough to do it in that order?

Yes.

The precise sequence depends on lots of (combinations of) options, but
in many cases rsync creates directories with permissions 0700 (u=rwx),
then fills in the contents, then sets xattrs, timestamps and
permissions/acls to the correct values after all transfers are done.

.Dave.


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-04-03 Thread Michael via rsync
Time Machine will enable ownership on the drive the first time it starts up.

The first thing it does when it creates the backup directory is to enable 
ownership on the drive. I've seen this happen repeatedly (it's actually the 
easiest way I know of to enable ownership on drive).

On 2018-04-03, at 4:05 AM, Dave Gordon via rsync  wrote:

> On 20/03/18 05:44, Andre Althoff via rsync wrote:
>> That doesn’t work too. :-(
>> 
>> Last login: Mon Mar 19 19:18:16 on console
>> iMac:~ andre$ mount
>> /dev/disk0s2 on / (hfs, local, journaled)
>> devfs on /dev (devfs, local, nobrowse)
>> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
>> map auto_home on /home (autofs, automounted, nobrowse)
>> /dev/disk2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
>> journaled, noowners)
> 
> Maybe the "noowners" is the problem?
> Try remounting the drive without this option?
> 
> .Dave.
> 
> 
> -- 
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: 
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

---
Entertaining minecraft videos
http://YouTube.com/keybounce


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-04-03 Thread Dave Gordon via rsync
On 20/03/18 05:44, Andre Althoff via rsync wrote:
> That doesn’t work too. :-(
> 
> Last login: Mon Mar 19 19:18:16 on console
> iMac:~ andre$ mount
> /dev/disk0s2 on / (hfs, local, journaled)
> devfs on /dev (devfs, local, nobrowse)
> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
> map auto_home on /home (autofs, automounted, nobrowse)
> /dev/disk2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
> journaled, noowners)

Maybe the "noowners" is the problem?
Try remounting the drive without this option?

.Dave.


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Michael via rsync
What is the order that rsync uses to set permissions?

Time Machine directories have ACL permissions that basically prohibit making 
any changes of any kind. In order to make a backup of the directory, you would 
need to set those permissions after copying everything in the subdirectories.

Is rsync smart enough to do it in that order?

On 2018-03-19, at 10:44 PM, Andre Althoff via rsync  
wrote:

> That doesn’t work too. :-(
> 
> Last login: Mon Mar 19 19:18:16 on console
> iMac:~ andre$ mount
> /dev/disk0s2 on / (hfs, local, journaled)
> devfs on /dev (devfs, local, nobrowse)
> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
> map auto_home on /home (autofs, automounted, nobrowse)
> /dev/disk2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
> journaled, noowners)
> iMac:~ andre$ 
>  [20.03.2018, 05:29:20 Wiederhergestellt]
> Last login: Tue Mar 20 05:29:05 on console
> Restored session: Mo 19 Mär 2018 19:55:46 CET
> iMac:~ andre$ mkdir /Volumes/G-DRIVE\ Thunderbolt\ 3/Test1
> iMac:~ andre$ ls /Volumes/G-DRIVE\ Thunderbolt\ 3/
> Test1
> iMac:~ andre$ ls -la /Volumes/G-DRIVE\ Thunderbolt\ 3/
> total 0
> drwxrwxr-x  7 andre  staff  306 20 Mär 06:12 .
> drwxr-xr-x@ 5 root   wheel  170 20 Mär 06:10 ..
> iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --delete --stats 
> --log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
> /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ 
> Thunderbolt\ 3
> Password:
> rsync: failed to set permissions 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-16-210209" 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 ***
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
> [sender=3.1.3]
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
> [generator=3.1.3]
> iMac:~ andre$ mount
> /dev/disk0s2 on / (hfs, local, journaled)
> devfs on /dev (devfs, local, nobrowse)
> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
> map auto_home on /home (autofs, automounted, nobrowse)
> /dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid, 
> journaled)
> /dev/disk3 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
> journaled, noowners)
> iMac:~ andre$ mount
> /dev/disk0s2 on / (hfs, local, journaled)
> devfs on /dev (devfs, local, nobrowse)
> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
> map auto_home on /home (autofs, automounted, nobrowse)
> /dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid, 
> journaled)
> /dev/disk3 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
> journaled)
> iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --delete --stats 
> --log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
> /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ 
> Thunderbolt\ 3
> Password:
> rsync: failed to set permissions 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-16-210209" 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 ***
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
> [sender=3.1.3]
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
> [generator=3.1.3]
> iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --fileflags --delete --stats 
> --log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
> /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ 
> Thunderbolt\ 3
> rsync: failed to set permissions 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-16-210209" 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 ***
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
> [sender=3.1.3]
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
> [generator=3.1.3]
> iMac:~ andre$ ls -la /Volumes
> total 8
> drwxr-xr-x@  5 root   wheel   

Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
That doesn’t work too. :-(

Last login: Mon Mar 19 19:18:16 on console
iMac:~ andre$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
journaled, noowners)
iMac:~ andre$ 
  [20.03.2018, 05:29:20 Wiederhergestellt]
Last login: Tue Mar 20 05:29:05 on console
Restored session: Mo 19 Mär 2018 19:55:46 CET
iMac:~ andre$ mkdir /Volumes/G-DRIVE\ Thunderbolt\ 3/Test1
iMac:~ andre$ ls /Volumes/G-DRIVE\ Thunderbolt\ 3/
Test1
iMac:~ andre$ ls -la /Volumes/G-DRIVE\ Thunderbolt\ 3/
total 0
drwxrwxr-x  7 andre  staff  306 20 Mär 06:12 .
drwxr-xr-x@ 5 root   wheel  170 20 Mär 06:10 ..
iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --delete --stats 
--log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
/Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ Thunderbolt\ 3
Password:
rsync: failed to set permissions 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-16-210209" 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 ***
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
[sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
[generator=3.1.3]
iMac:~ andre$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid, 
journaled)
/dev/disk3 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
journaled, noowners)
iMac:~ andre$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid, 
journaled)
/dev/disk3 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, 
journaled)
iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --delete --stats 
--log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
/Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ Thunderbolt\ 3
Password:
rsync: failed to set permissions 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-16-210209" 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 ***
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
[sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
[generator=3.1.3]
iMac:~ andre$ sudo /usr/local/bin/rsync -aHEAXN --fileflags --delete --stats 
--log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log 
/Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb /Volumes/G-DRIVE\ Thunderbolt\ 3
rsync: failed to set permissions 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-16-210209" 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 ***
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
[sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
[generator=3.1.3]
iMac:~ andre$ ls -la /Volumes
total 8
drwxr-xr-x@  5 root   wheel   170 20 Mär 06:10 .
drwxr-xr-x  33 root   wheel  1190 25 Feb 09:34 ..
drwxrwxr-x   8 root   wheel   340 20 Mär 06:28 G-DRIVE Thunderbolt 3
drwxrwxr-x  16 andre  staff   612 18 Mär 18:21 LaCie d2 Quadra v3
lrwxr-xr-x   1 root   wheel 1 20 Mär 05:26 Macintosh HD -> /
iMac:~ andre$ sudo chown mount
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
   chown [-fhv] [-R [-H | -L | -P]] :group file ...
iMac:~ andre$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, 

Re: rsync time machine backup permissions

2018-03-19 Thread Michael via rsync

On 2018-03-19, at 3:22 AM, Andre Althoff via rsync  
wrote:

> Dear rsync users,
> 
> I'm trying to copy my Time Machine Backup from my old USB hard drive to a new 
> one. I got error messages, because rsync don't create group and other 
> permissions.
> 
...

Instead of using rsync, can you use disk utility to copy the disc image from 
your old drive your new drive?

Unless rsync is smart enough to know how to do hard links on directories (a new 
feature added to the file system to support Time Machine), the copy will not 
work anyways


---
Entertaining minecraft videos
http://YouTube.com/keybounce


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Joe via rsync
I'm not sure if this might be an issue here. Since your variable isn't 
quoted, it might not be. But:


When you run rsync as rsync $param1 ...

and param1 is null, it may still be treated as the first argument to 
rsync - which may add the current directory to your sources or throw 
things off in some other way.


It depends on if it gets eliminated by the shell before rsync sees it.

Since this is relatively invisible, it's pretty hard to notice.

See 
https://unix.stackexchange.com/questions/415990/how-can-i-expand-a-quoted-variable-to-nothing-if-its-empty/ 



for a detailed exploration of this problem and ways to avoid it.

Joe

On 03/19/2018 06:22 AM, Andre Althoff via rsync wrote:

Dear rsync users,

I'm trying to copy my Time Machine Backup from my old USB hard drive 
to a new one. I got error messages, because rsync don't create group 
and other permissions.


I use rsync 3.1.3.

Did I use the correct parameters? Who has an idea, what mistake?

Thanks!

Best, André

--

The bash script:

#!/bin/bash

source=/Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb
destination=/Volumes/G-DRIVE\ Thunderbolt\ 3

#rsync_test=-n

rsync_opt=-aHEAXXN

echo "Kopiere Time Machine Backup ..."
echo

sudo /usr/local/bin/rsync \
$rsync_test $rsync_opt --fileflags --fake-super --delete --stats \
--log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log \
"$source" "$destination"

exit 0

--

The error messages:

iMac:~ andre$ /Users/andre/Desktop/Skripte/rsync_tm
Kopiere Time Machine Backup ...

rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/Latest": Operation not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/Handbücher & 
Informationen": Operation not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/etc": Operation 
not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/tmp": Operation 
not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/var": Operation 
not permitted (1)
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at 
rsync.c(700) [sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at 
io.c(504) [generator=3.1.3]

rsync: [receiver] write error: Broken pipe (32)

--

My search:

iMac:~ andre$ ls -la /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb/iMac
total 16
drwxr-xr-x@ 61 root  staff  2074 16 Mär 21:02 .
drwxr-xr-x+  6 root  staff   204  2 Jun  2012 ..
drwxr-xr-x@  7 root  staff   238 11 Apr  2016 2016-04-11-130912 

drwxr-xr-x@  7 root  staff   238 16 Mär 21:02 2018-03-16-210209 

lrwxr-xr-x   1 root  staff    17 16 Mär 21:02 Latest -> 
2018-03-16-210209 
iMac:~ andre$ ls -la /Volumes/G-DRIVE\ Thunderbolt\ 
3/Backups.backupdb/iMac/

total 16
drwxr-xr-x@ 61 root  staff  2074 16 Mär 21:02 .
drwxr-xr-x@  6 root  staff   204  2 Jun  2012 ..
drwxr-xr-x@  7 root  staff   238 11 Apr  2016 2016-04-11-130912 

drwx--   2 root  staff    68 18 Mär 19:11 2018-03-16-210209 

lrwxr-xr-x   1 root  staff    17 18 Mär 19:11 Latest -> 
2018-03-16-210209 

iMac:~ andre$ ls -n /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb/iMac
total 16
drwxr-xr-x@ 7 0 20  238 11  Apr  2016 
2016-04-11-130912 
drwxr-xr-x@ 7 0 20  238 16  Mär 21:02 
2018-03-16-210209 
lrwxr-xr-x  1 0  20   17 16 Mär 21:02 Latest -> 2018-03-16-210209 

iMac:~ andre$ ls -n /Volumes/G-DRIVE\ Thunderbolt\ 
3/Backups.backupdb/iMac/

total 16
drwxr-xr-x@ 7 0 20  238 11  Apr  2016 
2016-04-11-130912 
drwx--  2 0  20   68 18 Mär 19:11 2018-03-16-210209 

lrwxr-xr-x  1 0  20   17 18 Mär 19:11 Latest -> 2018-03-16-210209 


iMac:~ andre$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk1s2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, 
nosuid, journaled)
/dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, 
nosuid, journaled)






--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
A sync with some test folders works. I think, the attributes are the problem.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
It is formatted same - Mac OS Extended Journaled.

iMac:~ andre$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev 
(devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, 
nobrowse) map auto_home on /home (autofs, automounted, nobrowse) /dev/disk1s2 
on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev, nosuid, journaled) 
/dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid, 
journaled)-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync time machine backup permissions

2018-03-19 Thread Kevin Korb via rsync
Is this disk formatted FAT or similar that doesn't support such features?

On 03/19/2018 11:16 AM, Andre Althoff via rsync wrote:
> sh-3.2# /Users/andre/Desktop/Skripte/rsync_tm
> 
> Kopiere Time Machine Backup ...
> 
> rsync: chgrp "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/.RecoverySets/0/com.apple.recovery.boot/boot.efi"
> failed: Operation not permitted (1)
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac": Operation not permitted (1)
> rsync: symlink "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/Latest" -> "2018-03-16-210209
> " failed: Operation not permitted (1)
> rsync: recv_generator: mkdir "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/2016-04-11-130912" failed: Operation not
> permitted (1)
> *** Skipping any contents from this failed directory ***
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
> rsync.c(700) [sender=3.1.3]
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504)
> [generator=3.1.3]
> sh-3.2# rsync: [receiver] write error: Broken pipe (32)
> exit
> 
> 
> 
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
sh-3.2# /Users/andre/Desktop/Skripte/rsync_tm
Kopiere Time Machine Backup ...

rsync: chgrp "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/.RecoverySets/0/com.apple.recovery.boot/boot.efi" failed: 
Operation not permitted (1)
rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac": Operation not permitted (1)
rsync: symlink "/Volumes/G-DRIVE Thunderbolt 3/Backups.backupdb/iMac/Latest" -> 
"2018-03-16-210209" failed: Operation not permitted (1)
rsync: recv_generator: mkdir "/Volumes/G-DRIVE Thunderbolt 
3/Backups.backupdb/iMac/2016-04-11-130912" failed: Operation not permitted (1)
*** Skipping any contents from this failed directory ***
^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(700) 
[sender=3.1.3]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504) 
[generator=3.1.3]
sh-3.2# rsync: [receiver] write error: Broken pipe (32)
exit




-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync time machine backup permissions

2018-03-19 Thread Kevin Korb via rsync
What is the error then?

On 03/19/2018 10:59 AM, Andre Althoff via rsync wrote:
> It doesn‘t work without „—fake-user“. Time Machine is off. The copy process 
> doesn‘t work.
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
It doesn‘t work without „—fake-user“. Time Machine is off. The copy process 
doesn‘t work.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Andre Althoff via rsync
I get the same messages as root, when I login with the command „su“.

Best, Andre.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync time machine backup permissions

2018-03-19 Thread Kevin Korb via rsync
--fake-user means store that metadata in file xattrs rather than on the
files themselves.  I douby Time Machine understands that.

On 03/19/2018 06:22 AM, Andre Althoff via rsync wrote:
> Dear rsync users,
> 
> I'm trying to copy my Time Machine Backup from my old USB hard drive to
> a new one. I got error messages, because rsync don't create group and
> other permissions.
> 
> I use rsync 3.1.3.
> 
> Did I use the correct parameters? Who has an idea, what mistake?
> 
> Thanks!
> 
> Best, André
> 
> --
> 
> The bash script:
> 
> #!/bin/bash
> 
> source=/Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb
> destination=/Volumes/G-DRIVE\ Thunderbolt\ 3
> 
> #rsync_test=-n
> 
> rsync_opt=-aHEAXXN
> 
> echo "Kopiere Time Machine Backup ..."
> echo
> 
> sudo /usr/local/bin/rsync \
> $rsync_test $rsync_opt --fileflags --fake-super --delete --stats \
> --log-file=/Users/andre/Desktop/log/rsync-$(date "+%Y%m%d%H%M").log \
> "$source" "$destination"
> 
> exit 0
> 
> --
> 
> The error messages:
> 
> iMac:~ andre$ /Users/andre/Desktop/Skripte/rsync_tm
> Kopiere Time Machine Backup ...
> 
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/Latest": Operation not permitted (1)
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/Handbücher &
> Informationen": Operation not permitted (1)
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/etc": Operation
> not permitted (1)
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/tmp": Operation
> not permitted (1)
> rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt
> 3/Backups.backupdb/iMac/2016-04-11-130912/Macintosh HD/var": Operation
> not permitted (1)
> ^Crsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at
> rsync.c(700) [sender=3.1.3]
> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at io.c(504)
> [generator=3.1.3]
> rsync: [receiver] write error: Broken pipe (32)
> 
> --
> 
> My search:
> 
> iMac:~ andre$ ls -la /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb/iMac
> total 16
> drwxr-xr-x@ 61 root  staff  2074 16 Mär 21:02 .
> drwxr-xr-x+  6 root  staff   204  2 Jun  2012 ..
> drwxr-xr-x@  7 root  staff   238 11 Apr  2016 2016-04-11-130912
> 
> drwxr-xr-x@  7 root  staff   238 16 Mär 21:02 2018-03-16-210209
> 
> lrwxr-xr-x   1 root  staff    17 16 Mär 21:02 Latest
> -> 2018-03-16-210209 
> iMac:~ andre$ ls -la /Volumes/G-DRIVE\ Thunderbolt\ 3/Backups.backupdb/iMac/
> total 16
> drwxr-xr-x@ 61 root  staff  2074 16 Mär 21:02 .
> drwxr-xr-x@  6 root  staff   204  2 Jun  2012 ..
> drwxr-xr-x@  7 root  staff   238 11 Apr  2016 2016-04-11-130912
> 
> drwx--   2 root  staff    68 18 Mär 19:11 2018-03-16-210209
> 
> lrwxr-xr-x   1 root  staff    17 18 Mär 19:11 Latest
> -> 2018-03-16-210209 
> iMac:~ andre$ ls -n /Volumes/LaCie\ d2\ Quadra\ v3/Backups.backupdb/iMac
> total 16
> drwxr-xr-x@ 7 0  20  238 11  Apr
>  2016 2016-04-11-130912 
> drwxr-xr-x@ 7 0  20  238 16  Mär
> 21:02 2018-03-16-210209 
> lrwxr-xr-x  1 0  20   17 16 Mär 21:02 Latest -> 2018-03-16-210209
> 
> iMac:~ andre$ ls -n /Volumes/G-DRIVE\ Thunderbolt\ 3/Backups.backupdb/iMac/
> total 16
> drwxr-xr-x@ 7 0  20  238 11  Apr
>  2016 2016-04-11-130912 
> drwx--  2 0  20   68 18 Mär 19:11 2018-03-16-210209
> 
> lrwxr-xr-x  1 0  20   17 18 Mär 19:11 Latest -> 2018-03-16-210209
> 
> iMac:~ andre$ mount
> /dev/disk0s2 on / (hfs, local, journaled)
> devfs on /dev (devfs, local, nobrowse)
> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
> map auto_home on /home (autofs, automounted, nobrowse)
> /dev/disk1s2 on /Volumes/G-DRIVE Thunderbolt 3 (hfs, local, nodev,
> nosuid, journaled)
> /dev/disk2s2 on /Volumes/LaCie d2 Quadra v3 (hfs, local, nodev, nosuid,
> journaled)
> 
> 

-- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb  Phone:(407) 252-6853
Systems Administrator   Internet:
FutureQuest, Inc.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: rsync time machine backup permissions

2018-03-19 Thread Fabian Cenedese via rsync
At 11:22 19.03.2018, Andre Althoff via rsync wrote:

>Dear rsync users,
>
>I'm trying to copy my Time Machine Backup from my old USB hard drive to a new 
>one. I got error messages, because rsync don't create group and other 
>permissions.
>
>Did I use the correct parameters? Who has an idea, what mistake?
>
>rsync: failed to set times on "/Volumes/G-DRIVE Thunderbolt 
>3/Backups.backupdb/iMac/Latest": Operation not permitted (1)

Looks to me more like you have not enough rights to set times etc.
So you'd need to run the script as root.

bye  Fabi


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html