I'm in need of some help good friends. I am trying to set up my laptop to run a MyLiveCD command (or script if you will) through CRON. I wish to do this so that it will automatically backup my laptop once a month since I tend to forget. I have read up on how to make a CRON script and it seems pretty straight forward and simple but for whatever reason the script I right does not work. I place the script in the "/etc/cron.d" folder but with no luck. I try to add it manually through "konsole" using the command "crontab /etc/cron.d/mylivecd_backup.sh" and then run "crontab -l" to confirm that it has been added. This will, however, still not run the script when the time comes. I wait for the time to come around when the script is supposed to run and wait for 1 minute later, then I check the temp folder that I have it save the data to and there is nothing in it. I am at a loss to figure this one out. I would be most grateful for any help that you fine people could provide.
This is my full script/command that I would normally input:
#!/bin/sh
58 23 28 * * root umount -a
58 23 28 * * root mylivecd --lzma --md5sum --nodir ^/home/robert/Downloads,^/home/robert/documents,^/home/robert/Games,^/home/robert/Movies,^/home/robert/Music,^/home/robert/Pictures --img /home/robert/mylivecd_pclos_[YYYY-MM-DD].iso
Thanks in advance everyone.