Re: dd killt den Suse 10.2 Server.
Posted: 2007-07-13 14:44
Fipptehler?matzewe01 wrote:dd io=/dev/sda3 of=/mnt/sda3.img BS=4K
Resources for System-Administrators
https://www.rootforum.org/forum/
Fipptehler?matzewe01 wrote:dd io=/dev/sda3 of=/mnt/sda3.img BS=4K
Code: Select all
#!/bin/bash
mkdir -p /mnt/sda && mount -t xfs -o noatime /dev/sda3 /mnt/sda || exit 1
mkdir -p /mnt/sdb && mount -t xfs -o noatime /dev/sdb3 /mnt/sdb || exit 1
cd /mnt/sda && tar -cSp --atime-preserve --numeric-owner -f - . |
( cd /mnt/sdb && tar -xvSp --atime-preserve --numeric-owner -f - )
umount /mnt/sda /mnt/sdb || exit 1
exit 0