LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2009, 09:55 PM   #1
info1686
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Rep: Reputation: 0
retaining extended attributes of a file after a copy


Hi all,
I created a file on a Suse 9 x86-64 machine and set some extended attributes for it using setfattr

I then created an archive arc.tar of this file using tar.
Then, I moved the file to another machine, a Suse 10 x86_64 machine using FTP.

However, all extended attributes that were set for the file are lost in the new copy.

Why is this?
Is it conceptually possible to move a file from one machine to another and still manage to retain its extended attributes?

Thanks in advance...
 
Old 01-18-2009, 09:57 PM   #2
info1686
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Also both machines have the ReiserFS filesystem
 
Old 01-18-2009, 11:54 PM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by info1686 View Post
Hi all,
I created a file on a Suse 9 x86-64 machine and set some extended attributes for it using setfattr

I then created an archive arc.tar of this file using tar.
Then, I moved the file to another machine, a Suse 10 x86_64 machine using FTP.

However, all extended attributes that were set for the file are lost in the new copy.

Why is this?
Is it conceptually possible to move a file from one machine to another and still manage to retain its extended attributes?

Thanks in advance...
You can try to use star. It's the only program I aware of that preserve extended attributes. Or make something yourself with get/setfattr.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make alterations to a file using sed , saving changes and retaining filename ? uncle-c Linux - General 2 07-02-2009 10:46 AM
Explaining Extended Attributes Jzarecta Linux - Security 4 07-11-2007 02:12 PM
Copy files retaining ownership/permissions stefaandk Linux - Newbie 4 09-07-2006 08:25 PM
'mv' retaining file attributes? Jim Deakin Linux - Newbie 5 03-19-2006 11:14 AM
uploaded file on vsftpd has wrong file attributes rune.kg Linux - Newbie 2 03-06-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration