DJohnAnderson
Verified User
- Joined
- Mar 7, 2005
- Messages
- 10
System backup always fails with the log saying i don't have enough disk space -- however I do.
When I run sysbk as root I get the following errors:
I tripple checked that ftp works -- and in fact it does when i do a reseller backup of home directories.
[root@linode backup]# /usr/local/sysbk/sysbk -s
SysBK 1.0 [[email protected]]
Performing sanity checks: [ COMPLETED ]
Checking load average: [ COMPLETED ]
Checking free disk space: [ COMPLETED ]
Performing Custom backup
Archiving /etc/exim.conf: [ COMPLETED ]
Archiving /etc/exim.crt: [ COMPLETED ]
Archiving /etc/exim.key: [ COMPLETED ]
Archiving /etc/exim.pl: [ COMPLETED ]
Archiving /etc/group: [ COMPLETED ]
Archiving /etc/hosts: [ COMPLETED ]
Archiving /etc/passwd: [ COMPLETED ]
Archiving /etc/proftpd.conf: [ COMPLETED ]
Archiving /etc/proftpd.passwd: [ COMPLETED ]
Archiving /etc/proftpd.vhosts.conf: [ COMPLETED ]
Archiving /etc/resolv.conf: [ COMPLETED ]
Archiving /etc/shadow: [ COMPLETED ]
Archiving /etc/system_filter.exim: [ COMPLETED ]
Archiving /etc/mail: [ COMPLETED ]
Archiving /etc/virtual: [ COMPLETED ]
Archiving /home/admin: [ COMPLETED ]
Archiving /home/helen: [ COMPLETED ]
Archiving /home/john: [ COMPLETED ]
Archiving /usr/local/frontpage: [ COMPLETED ]
Archiving /var/log: [ COMPLETED ]
Archiving /var/mail: [ COMPLETED ]
Archiving /var/spool/cron: [ COMPLETED ]
Archiving /var/spool/mail: [ COMPLETED ]
Archiving /var/spool/virtual: [ COMPLETED ]
Archiving /var/www: [ COMPLETED ]
Performing DNS backup
Stage 1 DNS backup: [ COMPLETED ]
Stage 2 DNS backup: [ COMPLETED ]
Performing Apache backup: [ COMPLETED ]
Performing MySQL backup
Stage 1 MySQL backup: [ COMPLETED ]
Stage 2 MySQL backup: [ COMPLETED ]
Stage 3 MySQL backup:
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
Dumping database john_appmagic: [ COMPLETED ]
Dumping database mysql: [ COMPLETED ]
Dumping database test: [ COMPLETED ]
Performing backup transfer to 63.226.108.68: MKD 03-07-05 failed; [Permission denied.]
MKD 03-07-05/custom failed; [Permission denied.]
MKD 03-07-05/custom/etc failed; [Permission denied.]
MKD 03-07-05/custom/home failed; [Permission denied.]
MKD 03-07-05/custom/usr failed; [Permission denied.]
MKD 03-07-05/custom/usr/local failed; [Permission denied.]
MKD 03-07-05/custom/var failed; [Permission denied.]
MKD 03-07-05/custom/var/spool failed; [Permission denied.]
MKD 03-07-05/bind failed; [Permission denied.]
MKD 03-07-05/apache failed; [Permission denied.]
MKD 03-07-05/mysql failed; [Permission denied.]
ncftpput //backup/03-07-05: server said: Could not create file.
[ COMPLETED ]
Performing cleanup operations: [ COMPLETED ]
[root@linode backup]#
Here's my conf.sysbk:
[root@linode sysbk]# cat conf.sysbk
# SySBK 1.0 [[email protected]]
#
# NOTE: This file should be edited with word/line wrapping off,
# if your using pico please start it with the -w switch.
# (e.g: pico -w filename)
#
# [ Main Config ]
#
OS="`uname`";
INSPATH="/usr/local/sysbk" # Installation path of SySBK
MODPATH="$INSPATH/mod" # Module path for sysbk backup modules
CNF_INT="$INSPATH/internals/conf.internals" # Path to internals config
#
MOUNT_POINT="/" # Mount point backups are stored on
#
BACKUP_PATH="$MOUNT_POINT/backup" # Backup path relative to mount point [e.g: /home/backups]
# If this directory does not exist it will be created
#
MIN_DISK="128" # Min. amount of availible disk space required to perform backups
#
MAX_LOAD="3" # Max load level that the system must be below to perform backups
# No fractional values (e.g: 2.5)
#
if [ "$OS" = "FreeBSD" ]; then
ARC_PRI="/usr/bin/tar -cpzf"
else
ARC_PRI="/bin/tar -cpzf" # Primary compression utility (typicaly tar) - include arguments!!
fi
ARC_PRI_EXT=".tar.gz" # File extention for the primary compression utility
ARC_SEC="" # Secondary compression utility (typicaly bzip2) - include arguments!!
# If no value set, will only archive with Primary compression utility
#
ARC_SEC_EXT="" # File extention for the secondary compression utility
#
PRI="16" # Priority to run backups as. 21 = lowest priority, -19 = highest
# [NOTE: setting below value of 0 can damage the system.]
#
DU="/usr/bin/du" # Path to 'du' binary
if [ "$OS" = "FreeBSD" ]; then
MD5="/sbin/md5 -r"
GUNZIP="/usr/bin/gunzip"
NICE="/usr/bin/nice"
else
MD5="/usr/bin/md5sum" # Path to md5sum binary
GUNZIP="/bin/gunzip" # Path to 'gunzip' binary
NICE="/bin/nice" # Path to 'nice' binary
fi
# [ Transfer Module Config ]
#
USE_RTRANS="1" # Enable remote transfer of backup data [1=on,0=off]
RTRANS_METHOD="ftp" # Transport method for remote transfer [valid methods: ftp, scp]
#
DEL_AFTERTRANS="0" # Delete the local date specific backup path after remote transfer
# of backup. (e.g: /home/backup/12-24-02) [1=on,0=off]
#
FBF_RTRANS="0" # File by file backup (incramental). Archives backups one at a time,
# transfers remote, then deletes local.
#
NCFTP_PUT="/usr/bin/ncftpput" # Path to 'ncftpput' binary
FTP_HOST="63.226.108.68" # The host/ip of desired ftp site
FTP_USER="anonymous" # Username for ftp transfer of backups [remote user]
FTP_PASS="[email protected]" # Password for above user...
FTP_RPATH="incoming" # Remote path to store data, relative to remote user permissions
SCP="/usr/bin/scp" # Path to 'scp' binary
SCP_HOST="63.226.108.68" # The host/ip of desired scp site
SCP_USER="anonymous" # Username for scp transfer of backups [remote user]
SCP_RPATH="incoming" # Remote path to store data, relative to remote user permissions
PRVID_FILE="/root/.ssh/id_dsa" # Private key file for public/private key identification
# (e.g: /root/.ssh/id_dsa)
# [ Backup Module Config ]
#
# HTTP
#
HTTP_BK="1" # Enable/Disable apache backup operations [1=on,0=off]
HTTP_PATH="/etc/httpd" # Path to apache base directory [no trailing slash]
# DNS
#
BIND_BK="1" # Enable/Disable bind backup operations [1=on,0=off]
if [ "$OS" = "FreeBSD" ]; then
BIND_PATH="/etc/namedb"
BIND_CNF="/etc/namedb/named.conf"
else
BIND_PATH="/var/named" # Path to your bind zone files [no trailing slash]
BIND_CNF="/etc/named.conf" # Location of named.conf
fi
# MySQL
#
MYSQL_BK="1" # Enable/Disable mysql backup operations [1=on,0=off]
if [ "$OS" = "FreeBSD" ]; then
MYSQL_PATH="/home/mysql"
MYSQL_INIT="/usr/local/etc/rc.d/mysqld"
MYSQL_PID="$MYSQL_PATH/`hostname -s`.pid"
MYSQL_DUMP="/usr/local/mysql/bin/mysqldump"
MYSQL_MYICHK="/usr/local/mysql/bin/myisamchk"
else
MYSQL_PATH="/var/lib/mysql" # Installed location of mysql [no trailing slash]
MYSQL_INIT="/etc/init.d/mysqld" # Locationof MySQL INIT script
MYSQL_PID="$MYSQL_PATH/`hostname`.pid" # Location of MySQL PID file
MYSQL_DUMP="/usr/bin/mysqldump" # Path to the 'mysqldump' binary
MYSQL_MYICHK="/usr/bin/myisamchk" # Path to the 'myisamchk' binary
fi
MYSQL_ROOTUN="`cat /usr/local/directadmin/conf/mysql.conf | grep user | cut -d= -f2`" # MySQL Root login
MYSQL_ROOTPW="`cat /usr/local/directadmin/conf/mysql.conf | grep passwd | cut -d= -f2`" # MySQL Root password
# Custom
#
CUSTOM_BK="1" # Enable/Disable custom backup operations [1=on,0=off]
CUSTOM_FILES="$MODPATH/custom.files" # Fule list for custom backup operations
CUSTOM_DIRS="$MODPATH/custom.dirs" # Directory list for custom backup operations
ADD_USERS_TO_LIST="1"
[root@linode sysbk]#
When I run sysbk as root I get the following errors:
I tripple checked that ftp works -- and in fact it does when i do a reseller backup of home directories.
[root@linode backup]# /usr/local/sysbk/sysbk -s
SysBK 1.0 [[email protected]]
Performing sanity checks: [ COMPLETED ]
Checking load average: [ COMPLETED ]
Checking free disk space: [ COMPLETED ]
Performing Custom backup
Archiving /etc/exim.conf: [ COMPLETED ]
Archiving /etc/exim.crt: [ COMPLETED ]
Archiving /etc/exim.key: [ COMPLETED ]
Archiving /etc/exim.pl: [ COMPLETED ]
Archiving /etc/group: [ COMPLETED ]
Archiving /etc/hosts: [ COMPLETED ]
Archiving /etc/passwd: [ COMPLETED ]
Archiving /etc/proftpd.conf: [ COMPLETED ]
Archiving /etc/proftpd.passwd: [ COMPLETED ]
Archiving /etc/proftpd.vhosts.conf: [ COMPLETED ]
Archiving /etc/resolv.conf: [ COMPLETED ]
Archiving /etc/shadow: [ COMPLETED ]
Archiving /etc/system_filter.exim: [ COMPLETED ]
Archiving /etc/mail: [ COMPLETED ]
Archiving /etc/virtual: [ COMPLETED ]
Archiving /home/admin: [ COMPLETED ]
Archiving /home/helen: [ COMPLETED ]
Archiving /home/john: [ COMPLETED ]
Archiving /usr/local/frontpage: [ COMPLETED ]
Archiving /var/log: [ COMPLETED ]
Archiving /var/mail: [ COMPLETED ]
Archiving /var/spool/cron: [ COMPLETED ]
Archiving /var/spool/mail: [ COMPLETED ]
Archiving /var/spool/virtual: [ COMPLETED ]
Archiving /var/www: [ COMPLETED ]
Performing DNS backup
Stage 1 DNS backup: [ COMPLETED ]
Stage 2 DNS backup: [ COMPLETED ]
Performing Apache backup: [ COMPLETED ]
Performing MySQL backup
Stage 1 MySQL backup: [ COMPLETED ]
Stage 2 MySQL backup: [ COMPLETED ]
Stage 3 MySQL backup:
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
Dumping database john_appmagic: [ COMPLETED ]
Dumping database mysql: [ COMPLETED ]
Dumping database test: [ COMPLETED ]
Performing backup transfer to 63.226.108.68: MKD 03-07-05 failed; [Permission denied.]
MKD 03-07-05/custom failed; [Permission denied.]
MKD 03-07-05/custom/etc failed; [Permission denied.]
MKD 03-07-05/custom/home failed; [Permission denied.]
MKD 03-07-05/custom/usr failed; [Permission denied.]
MKD 03-07-05/custom/usr/local failed; [Permission denied.]
MKD 03-07-05/custom/var failed; [Permission denied.]
MKD 03-07-05/custom/var/spool failed; [Permission denied.]
MKD 03-07-05/bind failed; [Permission denied.]
MKD 03-07-05/apache failed; [Permission denied.]
MKD 03-07-05/mysql failed; [Permission denied.]
ncftpput //backup/03-07-05: server said: Could not create file.
[ COMPLETED ]
Performing cleanup operations: [ COMPLETED ]
[root@linode backup]#
Here's my conf.sysbk:
[root@linode sysbk]# cat conf.sysbk
# SySBK 1.0 [[email protected]]
#
# NOTE: This file should be edited with word/line wrapping off,
# if your using pico please start it with the -w switch.
# (e.g: pico -w filename)
#
# [ Main Config ]
#
OS="`uname`";
INSPATH="/usr/local/sysbk" # Installation path of SySBK
MODPATH="$INSPATH/mod" # Module path for sysbk backup modules
CNF_INT="$INSPATH/internals/conf.internals" # Path to internals config
#
MOUNT_POINT="/" # Mount point backups are stored on
#
BACKUP_PATH="$MOUNT_POINT/backup" # Backup path relative to mount point [e.g: /home/backups]
# If this directory does not exist it will be created
#
MIN_DISK="128" # Min. amount of availible disk space required to perform backups
#
MAX_LOAD="3" # Max load level that the system must be below to perform backups
# No fractional values (e.g: 2.5)
#
if [ "$OS" = "FreeBSD" ]; then
ARC_PRI="/usr/bin/tar -cpzf"
else
ARC_PRI="/bin/tar -cpzf" # Primary compression utility (typicaly tar) - include arguments!!
fi
ARC_PRI_EXT=".tar.gz" # File extention for the primary compression utility
ARC_SEC="" # Secondary compression utility (typicaly bzip2) - include arguments!!
# If no value set, will only archive with Primary compression utility
#
ARC_SEC_EXT="" # File extention for the secondary compression utility
#
PRI="16" # Priority to run backups as. 21 = lowest priority, -19 = highest
# [NOTE: setting below value of 0 can damage the system.]
#
DU="/usr/bin/du" # Path to 'du' binary
if [ "$OS" = "FreeBSD" ]; then
MD5="/sbin/md5 -r"
GUNZIP="/usr/bin/gunzip"
NICE="/usr/bin/nice"
else
MD5="/usr/bin/md5sum" # Path to md5sum binary
GUNZIP="/bin/gunzip" # Path to 'gunzip' binary
NICE="/bin/nice" # Path to 'nice' binary
fi
# [ Transfer Module Config ]
#
USE_RTRANS="1" # Enable remote transfer of backup data [1=on,0=off]
RTRANS_METHOD="ftp" # Transport method for remote transfer [valid methods: ftp, scp]
#
DEL_AFTERTRANS="0" # Delete the local date specific backup path after remote transfer
# of backup. (e.g: /home/backup/12-24-02) [1=on,0=off]
#
FBF_RTRANS="0" # File by file backup (incramental). Archives backups one at a time,
# transfers remote, then deletes local.
#
NCFTP_PUT="/usr/bin/ncftpput" # Path to 'ncftpput' binary
FTP_HOST="63.226.108.68" # The host/ip of desired ftp site
FTP_USER="anonymous" # Username for ftp transfer of backups [remote user]
FTP_PASS="[email protected]" # Password for above user...
FTP_RPATH="incoming" # Remote path to store data, relative to remote user permissions
SCP="/usr/bin/scp" # Path to 'scp' binary
SCP_HOST="63.226.108.68" # The host/ip of desired scp site
SCP_USER="anonymous" # Username for scp transfer of backups [remote user]
SCP_RPATH="incoming" # Remote path to store data, relative to remote user permissions
PRVID_FILE="/root/.ssh/id_dsa" # Private key file for public/private key identification
# (e.g: /root/.ssh/id_dsa)
# [ Backup Module Config ]
#
# HTTP
#
HTTP_BK="1" # Enable/Disable apache backup operations [1=on,0=off]
HTTP_PATH="/etc/httpd" # Path to apache base directory [no trailing slash]
# DNS
#
BIND_BK="1" # Enable/Disable bind backup operations [1=on,0=off]
if [ "$OS" = "FreeBSD" ]; then
BIND_PATH="/etc/namedb"
BIND_CNF="/etc/namedb/named.conf"
else
BIND_PATH="/var/named" # Path to your bind zone files [no trailing slash]
BIND_CNF="/etc/named.conf" # Location of named.conf
fi
# MySQL
#
MYSQL_BK="1" # Enable/Disable mysql backup operations [1=on,0=off]
if [ "$OS" = "FreeBSD" ]; then
MYSQL_PATH="/home/mysql"
MYSQL_INIT="/usr/local/etc/rc.d/mysqld"
MYSQL_PID="$MYSQL_PATH/`hostname -s`.pid"
MYSQL_DUMP="/usr/local/mysql/bin/mysqldump"
MYSQL_MYICHK="/usr/local/mysql/bin/myisamchk"
else
MYSQL_PATH="/var/lib/mysql" # Installed location of mysql [no trailing slash]
MYSQL_INIT="/etc/init.d/mysqld" # Locationof MySQL INIT script
MYSQL_PID="$MYSQL_PATH/`hostname`.pid" # Location of MySQL PID file
MYSQL_DUMP="/usr/bin/mysqldump" # Path to the 'mysqldump' binary
MYSQL_MYICHK="/usr/bin/myisamchk" # Path to the 'myisamchk' binary
fi
MYSQL_ROOTUN="`cat /usr/local/directadmin/conf/mysql.conf | grep user | cut -d= -f2`" # MySQL Root login
MYSQL_ROOTPW="`cat /usr/local/directadmin/conf/mysql.conf | grep passwd | cut -d= -f2`" # MySQL Root password
# Custom
#
CUSTOM_BK="1" # Enable/Disable custom backup operations [1=on,0=off]
CUSTOM_FILES="$MODPATH/custom.files" # Fule list for custom backup operations
CUSTOM_DIRS="$MODPATH/custom.dirs" # Directory list for custom backup operations
ADD_USERS_TO_LIST="1"
[root@linode sysbk]#