don't understand amverify
2003-08-28 15:38:14
So I'm trying to get amverify to verify "nttar" and "gtar" backups.
I've looked at this part of the amverify script from amanda 2.4.2p2:
if [ X"$1" = X"program" -a X"$2" != X"" ]; then
if [ X"$TAR" != X"" -a X"$2" = X"$TAR" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a X"$SAMBA_CLIENT" != X"" \
-a X"$2" = X"$SAMBA_CLIENT" ]; then
CMD=$TAR
ARGS="tf -"
elif [ X"$TAR" != X"" \
-a X`basename $2` = X`basename $TAR` ]; then
CMD=$TAR
ARGS="tf -"
But I don't understand it. If $1 is "tar", oes X"$1" = X"program"
compare "Xtar" to "Xprogram"? What are all these X's for?
--
Kurt Yoder
Sport & Health network administrator
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- don't understand amverify,
Kurt Yoder <=
|
|
|