I'm running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring /
(excluding mount-points). The problem is that /rescue
fills the /
partition (to the extent that I can't restore my entire /
partition) by taking up more place than it originally did.
I suppose it's because /rescue
contains links and not files, and that files, not links, are restored into my /
partition. I've tried restoring with both tar
and rsync
:
( cd /mybak/ ; tar --one-file-system -cvf - . ) | ( cd /newroot/ ; tar -xpf - . )
and
/usr/local/bin/rsync -va --delete --one-file-system /mybak/ /newroot/
Both methods lead to my problem. What can I do to properly restore (or initially backup) the /
partition, including /rescue
, so that the restore doesn't take up more disk space than the original?