Package: backup-manager
Version: 0.5.7-1sarge1

i run this script for backups:

-----------------------
#!/bin/bash
cp -Rp /etc /sdb/backups/daily/
cp -Rp /var/www/ /sdb/backups/daily/

/etc/init.d/mysql stop
cp -Rp /sdb/mysql/ /sdb/backups/daily/
/etc/init.d/mysql start
-----------------------

after that backup-manager follows with that config:

-----------------------
export BM_NAME_FORMAT="long"
export BM_FILETYPE="tar.gz"
export BM_MAX_TIME_TO_LIVE="5"

export BM_DUMP_SYMLINKS="false"

export BM_ARCHIVES_PREFIX="backup"

export BM_ARCHIVES_REPOSITORY="/sdb/backups"
export BM_DIRECTORIES="/sdb/backups/daily"
export BM_DIRECTORIES_BLACKLIST="/sdb/backups"

export BM_USER="root"
export BM_GROUP="root"
export BM_UPLOAD_MODE=""
export BM_UPLOAD_HOSTS=""
export BM_UPLOAD_USER=""
export BM_UPLOAD_PASSWD=""
export BM_UPLOAD_KEY=""
export BM_UPLOAD_DIR=""
export BM_BURNING="no"
export BM_BURNING_MEDIA=""
export BM_BURNING_DEVICE=""
export BM_BURNING_METHOD=""
export BM_BURNING_MAXSIZE=""
export BM_PRE_BACKUP_COMMAND=""
export BM_POST_BACKUP_COMMAND=""
-----------------------


there is a problem with files which contains blanks in their names.

/usr/sbin/backup-manager: line 213: [: /sdb/backups/daily/www/vhosts/domain1/httpdocs/images/cust_img/abendstimmung: binary operator expected /usr/sbin/backup-manager: line 217: [: /sdb/backups/daily/www/vhosts/domain1/httpdocs/images/cust_img/abendstimmung: binary operator expected /usr/sbin/backup-manager: line 181: [: /sdb/backups/daily/www/vhosts/domain1/httpdocs/images/cust_img/abendstimmung: binary operator expected
...
/usr/sbin/backup-manager: line 188: [: 50009222017240950001: integer expression expected


the file is called "abendstimmung wiese.jpg"



there is also a problem with symlinks, it seems that backup-manager follows them if even though BM_DUMP_SYMLINKS="false"


/usr/sbin/backup-manager: line 181: [: 
/sdb/backups/daily/www/vhosts/test/httpdocs/vhosts/test/httpdocs/vhosts/test/httpdocs/vhosts/test/httpdocs/vhosts/test/httpdocs/vhosts/test/httpdocs/vhosts/domain1/httpdocs/images/cust_img/abendstimmung
: binary operator expected


/sdb/backups/daily/www/vhosts/test/httpdocs/vhosts is a symlink to 
/var/www/vhosts/

I had to kill backup-manager by hand otherwise it would still run.


I dont know which of both bugs it was but all files in /var/www/vhosts expect 
folders and .hidden files got deleted.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to