Problem with permissions when trying to sync two external hard drives with rsync
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to sync an external hardrive with the one containing my photo archive.
I wanted to begin with the basics, so I run:
rsync -aHm --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/
In the first pass, it seemed to work allright. On subsequent runs, it gives me this message:
building file list ... rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
done
IO error encountered -- skipping file deletion
and fails to delete files that were deleted from the source disk.
The source disk is a partitioned disk; the other two partitions I use for time machine backups. Could that be the issue? Or what else might be happening.
permissions osx rsync
add a comment |
up vote
0
down vote
favorite
I'm trying to sync an external hardrive with the one containing my photo archive.
I wanted to begin with the basics, so I run:
rsync -aHm --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/
In the first pass, it seemed to work allright. On subsequent runs, it gives me this message:
building file list ... rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
done
IO error encountered -- skipping file deletion
and fails to delete files that were deleted from the source disk.
The source disk is a partitioned disk; the other two partitions I use for time machine backups. Could that be the issue? Or what else might be happening.
permissions osx rsync
3
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to sync an external hardrive with the one containing my photo archive.
I wanted to begin with the basics, so I run:
rsync -aHm --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/
In the first pass, it seemed to work allright. On subsequent runs, it gives me this message:
building file list ... rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
done
IO error encountered -- skipping file deletion
and fails to delete files that were deleted from the source disk.
The source disk is a partitioned disk; the other two partitions I use for time machine backups. Could that be the issue? Or what else might be happening.
permissions osx rsync
I'm trying to sync an external hardrive with the one containing my photo archive.
I wanted to begin with the basics, so I run:
rsync -aHm --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/
In the first pass, it seemed to work allright. On subsequent runs, it gives me this message:
building file list ... rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13)
rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
done
IO error encountered -- skipping file deletion
and fails to delete files that were deleted from the source disk.
The source disk is a partitioned disk; the other two partitions I use for time machine backups. Could that be the issue? Or what else might be happening.
permissions osx rsync
permissions osx rsync
edited Nov 27 at 2:17
user1133275
2,667415
2,667415
asked Nov 27 at 0:48
Andrés Vallejo
11
11
3
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14
add a comment |
3
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14
3
3
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
You could use sudo but it would be better to use --exclude=".TemporaryItems" --exclude=".Trashes" so as to avoid fighting the OS for control of it's system folders.
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
add a comment |
up vote
0
down vote
These files that failed to back up, are system and rsync files:
They can be safely ignored. --exclude
.DocumentRevisions-V100
.TemporaryItems
.Trashes
As referenced: @Apple StackExchange
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You could use sudo but it would be better to use --exclude=".TemporaryItems" --exclude=".Trashes" so as to avoid fighting the OS for control of it's system folders.
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
add a comment |
up vote
0
down vote
You could use sudo but it would be better to use --exclude=".TemporaryItems" --exclude=".Trashes" so as to avoid fighting the OS for control of it's system folders.
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
add a comment |
up vote
0
down vote
up vote
0
down vote
You could use sudo but it would be better to use --exclude=".TemporaryItems" --exclude=".Trashes" so as to avoid fighting the OS for control of it's system folders.
You could use sudo but it would be better to use --exclude=".TemporaryItems" --exclude=".Trashes" so as to avoid fighting the OS for control of it's system folders.
answered Nov 27 at 2:16
user1133275
2,667415
2,667415
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
add a comment |
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
add a comment |
up vote
0
down vote
These files that failed to back up, are system and rsync files:
They can be safely ignored. --exclude
.DocumentRevisions-V100
.TemporaryItems
.Trashes
As referenced: @Apple StackExchange
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
add a comment |
up vote
0
down vote
These files that failed to back up, are system and rsync files:
They can be safely ignored. --exclude
.DocumentRevisions-V100
.TemporaryItems
.Trashes
As referenced: @Apple StackExchange
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
add a comment |
up vote
0
down vote
up vote
0
down vote
These files that failed to back up, are system and rsync files:
They can be safely ignored. --exclude
.DocumentRevisions-V100
.TemporaryItems
.Trashes
As referenced: @Apple StackExchange
These files that failed to back up, are system and rsync files:
They can be safely ignored. --exclude
.DocumentRevisions-V100
.TemporaryItems
.Trashes
As referenced: @Apple StackExchange
answered Nov 27 at 3:12
Michael Prokopec
72116
72116
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
add a comment |
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Thanks for the answer. Just did that: rsync -aH --exclude=“.DocumentRevisions-V100” --exclude=“.TemporaryItems” --exclude=“.Trashes” --delete /Volumes/archivo_1a/ /Volumes/archivo_1c/ The issue remains, though: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(996) [sender=2.6.9]
– Andrés Vallejo
Nov 29 at 0:17
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
Nov 29 at 0:38
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f484336%2fproblem-with-permissions-when-trying-to-sync-two-external-hard-drives-with-rsync%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
What kind of filesystem is your target (/Volumes/archivio_1c)? What user is rsync running as? Does anything else write to the target filesystem besides rsync? What are the permissions on the directories that it mentioned?
– BowlOfRed
Nov 27 at 0:55
I'm not sure of the answers to all your questions. Here's my try: MacOS Extended (jled) - GUID Partition The user is me, the administrator of the iMac, the only user. Nothing else writes into the target. Actually, the output I copied above is from later trials. The first issues were with source disk permissions: rsync: opendir "/Volumes/archivo_1a/.DocumentRevisions-V100" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.TemporaryItems" failed: Permission denied (13) rsync: opendir "/Volumes/archivo_1a/.Trashes" failed: Permission denied (13)
– Andrés Vallejo
Nov 27 at 1:19
The I/O issue you are having needs to be examined in the logs.
– Michael Prokopec
Nov 27 at 3:13
How i generate logs or where can I find them?
– Andrés Vallejo
Nov 29 at 0:14