Damian Buckley wrote:
Hello, I have two seperate directories I wish to backup on the linux system /home and /usr. I don't seem to be able to find a way to enter the correct path in the crontab so I decided to create a script which takes the contents of /home and inputs it into a file, then append the file with the input of the /usr directory. What I now need to know is how can I get the cpio command to acknowledge this log file and backup all the filenames entered in there???
Somebody please help.
I think what you mean is that you want to backup these two dir's from cron? If not... sorry for the interruption =) But: find /home /usr | cpio -ocvO /output_file.cpio will do the trick for your command, then just mold that into your crontab.. no need to make files and append stuff.. -Jim