Hello
I made a script that will backup my system monthly, placed it in cron.monthly. Anyway whenever i run the script manually by .sysbackup it works. But whenever i try run-parts --report /etc/cron.monthly it gives the following error:
run-parts: failed to exec /etc/cron.montly/sysbackup: Exec format error
run-parts: /etc/cron.monthly/sysbackup exited with return code 1
to complete the information the script is:
Code:
#Moves teh other backups one place up
/bin/mv /backup/system/sys.1.tar.gz /backup/system/sys.2.tar.gz
/bin/mv /backup/system/sys.tar.gz /backup/system/sys.1.tar.gz
#Makes the new backup
/bin/tar -cPzf /backup/system/sys.tar.gz /bin /boot /etc /home /var /usr /sbin /lib
/bin/chgrp admin /backup/system/sys.tar.gz
What is wrong with this script? Why can i execute it manually and not with run-parts.
Thanks a lot
ChoKamir