This may be amazingly easy to you guys, but I cannot understand why it is not working. Typically I use 'cd' to change to a directory I wish the command executed in and its fine. But, the following will always place an empty tgz file in the root directory and nothing goes to the backup directory. What I am tryin to do is create a backup script that will backup some directories that cannot get backed up with the normal ones that occur. It seems that simply the 'cd' is not working? It is being run as root so it should be able to go anywhere. I am pretty sure I have used 'cd' before with success.
Another question I had was if the tarring processes would take a while would it cause problems? So, would it get to the 'mv' functions and so on before it completes the tarring thus causing problems? ...or does perl wait until each command is done before moving on?
Any help would be great! Thanks