This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Syncing extended attributes (xattrs) across many computers

Tags: None
(comma "," separated)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
I have two computers, a desktop and a laptop, that I'd like to sync xattrs across. Right now I use dropbox which syncs only its own xattr and some Mac ones, so that doesn't work. I've tried using rsync with the -X option but it doesn't work, EVEN if I change the timestamp of the file after modifying its xattrs. I guess because the file size doesn't change?

This is exactly what I've been doing. I have an external drive. I make a change on the desktop to a file's xattrs using Dolphin/baloo (e.g. a rating). I then sync the desktop and the external drive using rsync with option -X. I then sync the laptop and the external drive, again using the -X option. The extended attributes are NOT synced from desktop to laptop.

Help?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
What file systems are you using ?
Version of the rsync ?


At here:

With the 'rsync version 3.1.2 protocol version 31'.
From ext4(internal) to ntfs(external).

Using command:
Code: Select all
rsync -rtvX source_folder/ destination_folder/


The attributes are copied.
molecule-eye
Registered Member
Posts
402
Karma
0
OS
I'm using rsync version 3.1.1 protocol version 31, and filesystem EXT4.

I should say that rsync DOES copy xattrs, but it doesn't SYNC files if ONLY the xattrs or timestamp (or both) change. I'm trying to push metadata changes from one computer to another using rsync, but it won't queue a file for sync if all I do to the file is change its xattrs.

I was using the following command: rsync -h --progress --stats -r -tgo -p -l -D --update -X SOURCE DESTINATION


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]