On Tue, Oct 16, 2018 at 08:50:44PM +0000, Hans Malissa wrote:
> Is tar the best tool to copy the whole root file system? Will it preserve the
> symlinks and the attributes? What about rsync? What if source and target
> partition use a different file system?
>
> Hans
Tar should do it fine.
I've just tested by running
ld -li /usr/bin/* | less
noted that automake and automake-1.16 are hardlinks, then
cd /tmp; run tar -cv /usr/bin/automake* | tar -x
ls -li usr/bin/*
And yes, you could use rsync, once you have sorted out the right
options to pass to it (I use it for the first stage of my backups),
but for a one-off copy it will take a lot longer.
The filesystem should be irrelevant (assuming linux filesystems,
with FAT varieties you should expect disaster). On my own external
drives and sticks that are only used on linux machines I just run
mkfs -t ext4.
ĸen
--
Is it about a bicycle ?
--
http://lists.linuxfromscratch.org/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page