[Pc_Support] Linux sh question ....

William A. Mahaffey III wam at HiWAAY.net
Sun Jan 15 10:20:43 EST 2006


.... as part of my elaborate (Rube Goldbergian ?) backup protocol, I 
have a 2.4 GHz P4, running SuSE 9.2P, all stock, w/ 2 largish (for me 
anyway) HDD's, 1 160 GB mounted as /home, ReiserFS, and another 400 GB 
mounted as /work, ext3. I backup stuff up across my LAN onto the 400 GB 
drive, then (try to) copy selected bits to the 160 GB drive. When I try 
to do that copy (from a bash script), I get the following:

cp: cannot stat `/work/archive/wam/*.new.tgz': No such file or directory

Some more particulars:

[wam at INTC2400A, test, 9:10:17am] 434 % ll /work/archive/wam/*.new.tgz
29016073 8012272 -rw-r--r--  1 wam users 8196544481 2006-01-15 01:44 
/work/archive/wam/Darkstar.new.tgz
29016071  841308 -rw-r--r--  1 wam users  860650529 2006-01-15 01:02 
/work/archive/wam/Indigo.new.tgz
29016070 1538080 -rw-r--r--  1 wam users 1573446048 2006-01-15 01:19 
/work/archive/wam/SSE.new.tgz
[wam at INTC2400A, test, 9:10:27am] 435 % !df
df ; w ; /sbin/swapon -s ; free -m ; uname -a ; date
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/hda2 reiserfs    17140784   1916132  15224652  12% /
tmpfs        tmpfs     1033304        12   1033292   1% /dev/shm
/dev/hdd1     ext3   384578164  25330936 339711788   7% /work
/dev/hdb1 reiserfs   156283544  12348704 143934840   8% /home
 09:11:12 up 5 days, 20:54,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
wam      pts/0     Mon13    0.00s  0.37s  0.00s w
Filename                                Type            Size    Used    
Priority
/dev/hda1                               partition       2409708 5264    42
             total       used       free     shared    buffers     cached
Mem:          2018       2002         15          0         31       1921
-/+ buffers/cache:         49       1968
Swap:         2353          5       2348
Linux INTC2400A 2.6.8-24-smp #1 SMP Wed Oct 6 09:16:23 UTC 2004 i686 
i686 i386 GNU/Linux
Sun Jan 15 09:11:12 CST 2006


Am I doing something wrong in my backup shell script ? Can bash not 
parse the following line:

\cp -p /work/archive/wam/*.new.tgz /home/archive/wam/

which is the last line in my backup script ? TIA

-- 
	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton




More information about the Pc_support mailing list