Actually, line 163 is the echo command.  Still, nothing odd in any case.
One thing I do to try to see more of what's going on is to change the
second tar command to include a -v switch so that it tells me which
files are being dropped onto the file system:
-  tar -clpSf - . | (cd /mnt ; tar -xpSf - )
+  tar -clpSf - . | (cd /mnt ; tar -vxpSf - )

Additionally, you could add a
set -x
command to the script so that it prints out each command as it gets
executed.


Mark Post

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
James Melin
Sent: Friday, October 21, 2005 9:23 AM
To: [email protected]
Subject: Re: Trying to move a file system recursively using tar


line 163 is the tar command - but here ya go.

#1

vadnais:/etc # cat create_system | sed -e '160,165 !d'
echo "copying single disk clone to target dasd"
cd /
tar -clpSf - . | (cd /mnt ; tar -xpSf - )
echo "Copy complete"

echo "Chroot to /mnt and run mkinitrd and zipl!"

and #2

vadnais:/etc # cat -evT create_system | sed -e '160,165 !d'
echo "copying single disk clone to target dasd"$
cd /$
tar -clpSf - . | (cd /mnt ; tar -xpSf - )$
echo "Copy complete"$
$
echo "Chroot to /mnt and run mkinitrd and zipl!"$
vadnais:/etc #

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to