Problem with permissions when trying to sync two external hard drives with rsync
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
New contributor
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
New contributor
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
2 days ago
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
New contributor
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
New contributor
New contributor
edited Nov 27 at 2:17
user1133275
2,587415
2,587415
New contributor
asked Nov 27 at 0:48
Andrés Vallejo
11
11
New contributor
New contributor
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
2 days ago
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
2 days ago
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
2 days ago
How i generate logs or where can I find them?
– Andrés Vallejo
2 days ago
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
2 days ago
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
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
2 days ago
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
2 days ago
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,587415
2,587415
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
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
68716
68716
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
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
2 days ago
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
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
Ok, you are welcome. @AndrésVallejo
– Michael Prokopec
2 days ago
add a comment |
Andrés Vallejo is a new contributor. Be nice, and check out our Code of Conduct.
Andrés Vallejo is a new contributor. Be nice, and check out our Code of Conduct.
Andrés Vallejo is a new contributor. Be nice, and check out our Code of Conduct.
Andrés Vallejo is a new contributor. Be nice, and check out our Code of Conduct.
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
2 days ago