Backup script to tar
Hi, I was attempting to write my first 'real' script today and had an issue with it. The script is suposed to take a directory, go through all the files in it and place the files into several 1 Gig sized tar files. It seems to divide the files up ok, but when it gets to where it runs the tar ... tar gives me errors about not being able to find the files. When i echo the tar command the script creates and then just copy the command into the console, the tar runs without a problem. Thanks for your time.
Code:
#!/bin/bash |
just replace your last line by:
eval $cmd and it will work better. |
thanks much, that did it
|
All times are GMT -5. The time now is 02:21 AM. |