I am trying to automate some of my backups. I wrote a small perl script to tar directories. Some of the directories are located on a windows partition. The following command works from the command line in Linux but not in the script.
tar cvf /backup/desktop.tar /drive-c/windows/Program\ Files/Desktop.
In the perl script the space between Program and Files has tar thinking it is two diffrent directories and it errors out. I have tried several diffrent variables but nothing seems to work.
Thanks,
David