Admin Backup issues with files over 2gb

jjma

Verified User
Joined
Mar 29, 2004
Messages
275
Location
Edinburgh,Scotland
I've come accross a few threads which partially relate to the problem I have which is the admin.tar.gz file is not being backed up to our remote server anymore. The file size is around 2.5gb and the transfer is over an internal lan.

The file transfers if it is either transferred manually or if the admin reseller backs up all the users.

One error I get is "Value too large for define data type"

Jon
 
I have the following in /usr/local/directadmin/scripts/custom/ftp_upload.php

Code:
/bin/sh
/usr/bin/ncftpput -t 25 -m -u $ftp_username -p $ftp_password $ftp_ip $ftp_path $ftp_local_file 2>&1
RET=$?
exit $RET

PHP has problems with files over 2GB.
 
Last edited:
I tried that but it didn't work although there were no errors. Shows completed when transfer includes admin.tar.gz

Jon
 
I used the script from the directadmin knowledgebase so I don't think the line break was an issue, but thanks.

Jon
 
Exactly what part of the procedure is giving you that error message?

Are you sure your OS Distribution properly handles files over 2GB? That used to be a limit of some file systems.

We use the system backup (sysbk) program built in to DirectAdmin, and it successfully transfers files well over 2G. For example, yesterday at 03:20 it successfully copied over a 5.3G file from a colocation client of ours to our backup server.

Jeff
 
If the Os can handle transferring the file using the reseller backup script then I don't see why it should fail on the admin backup?

I can't see any errors when I use the ncftpput script so can comment on the error message.

OS is centos 3.7 > gzip 1.3.3

Jon
 
Are you sure your OS Distribution properly handles files over 2GB? That used to be a limit of some file systems.

We use the system backup (sysbk) program built in to DirectAdmin, and it successfully transfers files well over 2G. For example, yesterday at 03:20 it successfully copied over a 5.3G file from a colocation client of ours to our backup server.

Jeff,

What OS are you using for the your colo client?

Jon
 
That particular client is running RHL 7.3.

Others use various CentOS builds.

Jeff
 
Very strange as I have the issue with two servers both failing to ftp a file over 2gb. Both systems run on Centos 3.7 and both can transfer same file using the reseller backup that runs daily.

No errors running /usr/local/sysbk -s at command line and backing up admin user only but file not transferred.

DA suggests that gzip might need recompiling from source but why would the reseller backup feature be able to zip and transfer the file?

baffled.

Jon
 
Back
Top