Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cronjob führt dirvish-runall nicht richtig aus
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Fri Apr 21, 2006 6:20 am    Post subject: cronjob führt dirvish-runall nicht richtig aus Reply with quote

hi,

ich habe auf meinem server dirvish zum erstellen von backups installiert. Das klappt so weit auch alles wunderbar. Dann wollte ich von cron automatisch jeden Tag ein Backup machen lassen und habe
Code:

0 4 * * * /etc/dirvish/dirvish-cronjob


in die crontab von root geschrieben.
Hier der Inhalt von /etc/dirvish/dirvish-cronjob
Code:

#! /bin/sh
#
#

if [ ! -x /usr/sbin/dirvish-expire  ]; then exit 0; fi
if [ ! -s /etc/dirvish/master.conf ]; then exit 0; fi

/usr/sbin/dirvish-expire && /usr/sbin/dirvish-runall
rc=$?

exit $rc


Ich habe nun das Problem, das cron zwar alle Befehle ausführt, aber dirvish-runall keine daten sichert. Hier die Ausgabe von dirvish-runall:
Code:

08:06:01 dirvish --vault home
08:06:01 dirvish --vault root
08:06:01 dirvish --vault vservers
08:06:01 done

Er sichert also alles in nur 1er sekunde *g*. Ne also mal ehrlich es wird einfach kein Backup erzeugt. Wenn ich das ganze von Hand als root ausführe klappt alles wunderbar. Hat einer von euch eine Idee woran das liegt? Ich habe echt keine Ahung mehr.

Bis dann
AnubisTheKing
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
AnubisTheKing
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 166

PostPosted: Sun Apr 23, 2006 1:50 pm    Post subject: Reply with quote

hat keiner von euch eine Idee?
_________________
http://www.volker-boehme.de
Back to top
View user's profile Send private message
Hoodaly
n00b
n00b


Joined: 20 May 2015
Posts: 1

PostPosted: Wed May 20, 2015 9:02 pm    Post subject: Reply with quote

Zwar alt, aber das einzige was man zu dem Symptom bei Google findet...

Konnte mein Problem so lösen:
Wenn das Script von cron gestartet wird, ist /usr/sbin nicht im Pfad, nur /usr/bin. Darum muss in die /etc/dirvish/master.conf die Zeile
Code:
Dirvish: /usr/sbin/dirvish

eingetragen werden.

LG Hoodaly
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum