backup2l

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
BlueRoot
Beiträge: 24
Registriert: 30.07.2004 15:39:31

backup2l

Beitrag von BlueRoot » 17.09.2005 21:11:09

Hi,

ich habe ************ Probleme mit backup2l, aber seht selbst:

Code: Alles auswählen

backup2l -b
/usr/sbin/backup2l: /etc/backup2l.conf: line 103: syntax error near unexpected token `('
/usr/sbin/backup2l: /etc/backup2l.conf: line 103: `POST_BACKUP ()'
Speicherzugriffsfehler
Vorher hatte ich:

Code: Alles auswählen

# /usr/sbin/backup2l: /etc/backup2l.conf: line 95: syntax error near unexpected token `>'
# /usr/sbin/backup2l: /etc/backup2l.conf: line 95: `mysqldump -A --add-locks -u root --password=******** > /home/backup/sql/sql.dump'
Folgendes steht in der Config:

Code: Alles auswählen

...
##################################################
# Pre-/Post-backup functions

# This user-defined bash function is executed before a backup is made
PRE_BACKUP ()
{
echo "pre-backup:"

# e. g., shut down some mail/db servers if their files are to be backup'ed

# On a Debian system, the following statements dump a machine-readable list of
# all installed packages to a file.
#echo "---writing dpkg selections to /root/dpkg-selections.log..."
#dpkg --get-selections | diff - /root/dpkg-selections.log > /dev/null || dpkg --get-selections > /root/dpkg-selections.log

# mysql dump
echo "dumping mysqldatabase"
#mysqldump -A --add-locks -u root --password=********* > /home/backup/sql/sql.dump
echo "end dumping DB"

# /usr/sbin/backup2l: /etc/backup2l.conf: line 95: syntax error near unexpected token `>'
# /usr/sbin/backup2l: /etc/backup2l.conf: line 95: `mysqldump -A --add-locks -u root --password=******* > /home/backup/sql/sql.dump'
}

# This user-defined bash function is executed after a backup is made
POST_BACKUP ()
{
# e. g., restart some mail/db server if its files are to be backup'ed
#cd /home/backup/
#nice -19 sh backup
#tail -n 40 /home/backup/backup.log | mail -s "server - backup" xxx@xxx.de
}

##################################################
# Misc.

# Create a backup when invoked without arguments?
AUTORUN=0
...
Hat jemand eine Idee woher diese komischen Configfehler kommen?
Ich habe es installiert mit apt-get und habe Debian sarge mit einem eigenen 2.6.13.1 Kernel.

Ansonsten ist fast alles Standart. Normal dürfte da doch kein Fehler kommen??
Doe Config ist Standartmäßig ja so.

Ein neuer Tag und noch mal alles von vorne gemacht. Nun passt es.

Antworten