Re: how to preserve permission and ownership ?
Federico Sevilla III <[email protected]> Tue, 6 Dec 2005 11:32:30 +0800
| Newsgroups | gmane.org.user-groups.linux.philippine.newbies |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Dec 05, 2005 at 07:23:39PM -0800, sp@rt@cus wrote: > ive created a backup server with a fat32 hd mounted and it will be > used to hold my backup files. After backup and compressing the > files , i transfered the backup files to my backup server on > /home/backup. NO problem after decomressing the files, permission and > ownership are intact. I got this problem when i tried to move the > backup files to the fat32 mounted hard disk. All my permission are > gone when i untar them. how can i preserve the perm and ownership for > these files ? FAT32 does not have a concept of ownership or permissions, so you will really lose these if you back up your files by copying them to a FAT32 filesystem. You can back up your files by storing them in tar files (optionally compressed), though. That will allow you to preserve the ownership and permissions of the files within the tar file. If this is already how you're doing things and are still not able to preserve the ownership and permissions, you are probably extracting the archive as a regular user. This is fine if all files are owned by you, but otherwise, you want to extract the archive as the root user to preserve ownership and permissions. Alternatively you can experiment with using the --preserve parameter. Consult the tar(1) manual page for more details. Good luck. --> Jijo -- Federico Sevilla III : jijo.free.net.ph : When we speak of free software GNU/Linux Specialist : GnuPG 0x93B746BE : we refer to freedom, not price. _________________________________________________________ Philippine Linux Users' Group (PLUG) Newbie Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph