Backup Script

  • Hello dear community, I the problem that my backup scripts from the errors are 'edition of the cd command / backup; ./backup02.sh ..


    Source: Is a directory 'because then I have to say that it went perfect yet at 10.4 knows a possibly where the error is there and lftp is also the server on it


    cd / backup; ./backup01.sh


    Shell-Script
    1. #!/bin/bash
    2. bye
    3. "
  • Hi,


    sorry, but I understand nothing. I think it is better you post in your native language in the right forum or here and we move the thread.


    Greets
    Chris

  • Ich habe das Problem, das mein Backup Script den fehler aus gibt 'Ausgabe des Befehls cd /backup ; ./backup02.sh ..
    source: Is a directory' da zu muss ich sagen das es bei 10.4 noch Perfekt gelaufen ist weiß einer evtl wo der Fehler drin ist und lftp ist auch auf den server drauf

  • Hallo,


    kannst Du mal bitte Deine Dateien etwas konkreter beschreiben. Einmla sprichst Du oben von backup01.sh und auch von backup02.sh. Wo liegen die beiden Dateien und welche führt was aus?


    Grüße
    Chris

  • Also habe 2 Website da drauf laufen


    per corn tab erster corn tab


    root
    cd /backup ; ./backup01.sh
    Server Backup Script

    Shell-Script
    1. #!/bin/bashbye"

    Zweiter Corn Tab
    root
    cd /backup ; ./backup02.sh


    Server Backup Script



    Shell-Script
    1. #!/bin/bash
    2. "

    also sprich lasse ich die 2 Website sichern auf einen anderen Server nur das macht er nun ja nicht mehr da er mir den fehler aus gibt Source: Is a directory


    root@nsXXXXXX:/backup# ./ backup01.sh
    -bash: ./: Is a directory


    root@nsXXXXXX:/backup# ./ backup02.sh
    -bash: ./: Is a directory


    hoffe das ist ausfühlicher ;)

  • root@nsXXXXXX:/backup# ./ backup01.sh
    -bash: ./: Is a directory


    root@nsXXXXXX:/backup# ./ backup02.sh
    -bash: ./: Is a directory

    Ähm. Lass mal die Leerzeichen zwischen ./ backup01.sh etc. weg.


    Desweiteren ist es nicht wirklich schön, in einem Cronjob das Verzeichnis zu wechseln. Ist auch sinnlos. Ruf im Cron doch einfach den korrekten Pfad auf.