Date: Mon, 04 Feb 2008 22:08:51 -0500 From: Francois-Xavier Charpentier de Beauville <francois-xavier@charpentier-de-beauville.com> To: freebsd-questions@freebsd.org Subject: Preserving file permissions with dump and restore Message-ID: <47A7D343.1090603@charpentier-de-beauville.com>
next in thread | raw e-mail | index | archive | help
Hi, I have a box with three hard drives: /dev/da0 - dedicated to the OS /dev/ad4s1e - data drive - mounted as /store /dev/ad5s1e - hold a backup of /dev/ad4 - mounted as /backup I used 'dump' to backup everything from /store to /backup with the following command: dump -0aun -f /backup/fullbackup /store As expected, the result is a dump file called 'fullbackup' Then I tested a restore, by restoring the fullbackup file from /backup to /store. I did the following: 1) made /store pristine: newfs -U /dev/ad4s1e 2) mounted /dev/ad4s1e on /store 3) cd into /store 4) ran the command: restore -r -uv -f /backup/fullbackup 5) remove 'restoresymtable' from /store The restore went fine and I had all the files back. However, all file permissions were gone. How can I preserve file permissions with dump / restore? Thanks in advance for your help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A7D343.1090603>