Yes..right. Crontab -l -u amanda
0 1 * * 0 /etc/amanda/tape.sh (<-- i now put all the Steps into one script ... also mt -f ...) The Script: #!/bin/bash /bin/mt -f /dev/nst0 rewind # #counter # let zahl=`/bin/cat /etc/amanda/counter`; let zahl=$zahl+1; /bin/echo $zahl > /etc/amanda/counter; #label # counter=`/bin/cat /etc/amanda/counter`; /usr/sbin/amlabel -f full-sonntag DailySet$counter; #amcheck # /usr/sbin/amcheck -a full-sonntag sleep 5 # #dump /usr/sbin/amdump full-sonntag && /usr/sbin/amadmin full-sonntag export Tomorrow morning i will see if everything works...when i start the script manualy everything is fine... -----Urspr�ngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Stefan G. Weichinger Gesendet: Donnerstag, 14. April 2005 12:07 An: [email protected] Betreff: Re: AW: AW: AW: AW: Problem with tape and labeling (archiving) Hi, Sebastian, on Donnerstag, 14. April 2005 at 10:46 you wrote to amanda-users: SK> The pathes are hardcoded in the script Once again: # crontab -u amanda -l gives: 0 1 * * 0 /etc/amanda/label.sh (with DailySet1004) 15 1 * * 0 /usr/sbin/amcheck -a full-Sonntag ?? And you have executed these steps as user amanda as well? Note that you have executed "amcheck" manually, not "/usr/sbin/amcheck", but this shouldn't be your problem. Maybe add an explicit "mt rewind" to your label.sh ... -- best regards, Stefan Stefan G. Weichinger mailto:[EMAIL PROTECTED]
