You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set extended attributes for each file that rsync transferred. I run rsync with the --out-format=%i %C %n switch to get a checksum, and that is what I want to store in the extended attributes. Right now, I just store rsync's stdout into a temporary file, and read that afterwards. But I figure that it would be better to just set the extended attribute on the fly. I'd do something like this:
However, I am not sure if this is safe. Once rsync prints out a line for a transferred file, is it 100% done with that file? Or could setting an extended attribute somehow mess up its operations? Or does rsync touch the files later somehow, potentially erasing the extended attribute?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to set extended attributes for each file that rsync transferred. I run rsync with the
--out-format=%i %C %n
switch to get a checksum, and that is what I want to store in the extended attributes. Right now, I just store rsync's stdout into a temporary file, and read that afterwards. But I figure that it would be better to just set the extended attribute on the fly. I'd do something like this:However, I am not sure if this is safe. Once rsync prints out a line for a transferred file, is it 100% done with that file? Or could setting an extended attribute somehow mess up its operations? Or does rsync touch the files later somehow, potentially erasing the extended attribute?
Beta Was this translation helpful? Give feedback.
All reactions