Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a backup of my home directory to an NTFS partition (an unfortunate limitation). However, when I last tried using just cp, the attributes (owner, etc) went away. How can I make a backup while still preserving these attributes? My first instinct is to make a tarball, but I'm not sure if this will work.

For reference, I'm running Ubuntu Raring devel.

share|improve this question
A tarball will preserve the attributes. Note, if you have ACL(s), tarballs will not preserve that unless it's been compiled to support it. – Wing Tang Wong Apr 22 '13 at 19:08
Most recent linux distros and recent versions of tar support ACLs by default, I think... – Shadur Apr 23 '13 at 7:26
up vote 7 down vote accepted

Unfortunately, the NTFS permissions model and the Unix one don't look alike at all. There simply is no way to sanely map between them.

Use tar, but read the documentation carefully so all permissions get faithfully stored (including ACLs and SELinux contexts).

share|improve this answer
what's an ACL? if I haven't used ACLs or SELinux contexts on purpose, can I assume that I don't have them? if it's relevant, I'm running Ubuntu Raring devel – strugee Apr 23 '13 at 1:21
@strugee ACLs are advanced POSIX Access Control Lists which allow significantly finer control on a per-user basis. As with SELinux, if you don't explicitly activated or used them, you probably don't have to worry them. – Shadur Apr 23 '13 at 7:24

Just use tar to dump the data and getfacl/setfacl for storing/restoring the ACLs. Even if NTFS supported UNIX permissions you'd have to ensure mapping od user/group IDs and names, which tar does for you automatically (be aware that some - usually rather ancient or non-mainstream - versions of the utility don't store user/group names, only the numerical IDs).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.