vezi ca nici in bash nu-ti mere
eroarea este de la data in scriptul tau , mai precis de la /
mv ion.tgz "backup-mail<->`date`.tgz"
ko ?
Ionut Murgoci wrote:
> Salut,
> Am o problema cu un script ce trebe rulat de cron.
> deci, am un script care tre sa faca backup la 50M maxim ..
> oki scriptu face un fis ion.tgz dupa care il muta in /dos/mail:
> (don't blame the name dos- a fost si asa ceva acolo )
>
> cd /var/spool/mail
> tar -czpf ion.tgz *
> mv ion.tgz "backup-mail<->`date +%A\<-\>%x\<-\>%H:%M:%S`.tgz"
> mv "backup-mail<->`date +%A\<-\>%x\<-\>%H:%M:%S`.tgz" /dos/mail
>
> Bun, daca il execut frumos cu rootu' de la consola merje si nu zice nik,
> totu ok.
> Insa cand il lanseaza cronu' nu mi-l mai redenumeshte cum ar trebui sa fie
> si deci nu mi-l muta pe partitia aferenta.
>
> Eroare de la cron :
> mv: cannot create regular file
> `backup-mail<->Saturday<->12/09/00<->18:49:25.tgz': No such file or
> directory
> mv: cannot stat `backup-mail<->Saturday<->12/09/00<->18:49:25.tgz': No
> such file or directory
>
> Merci mult si numai bine,
> Ionut.
>
> --
> Ionut Murgoci
> Network and System Admin
> Computer Highschool - Iasi
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
--
computer do what we tell to do not what we want to do
Bebi Costescu
www.hs.ro
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.