Backuping to FTP, not working

wdeboer

Verified User
Joined
Jul 16, 2005
Messages
40
Hello

I would like to execute a nightly system backup from my server. After some problems with RAID (it recovered old files :() now I would like to my a local system backup and upload the backup to other server.

The backup to the local file works fine, only the upload to other server fails. Some how it says it all went nicely. Only I don't see any files in my /backups! Anyone know what could be the problem?

Maybe the backup function of DirectAdmin has something wrong? Because my FTP accounts only work with passive mode disabled, how can I tell the backup functionality this?

Cheers!

Weyert de Boer
 
The problem is the lack of passive mode.

You can find the location inside the sysbk code and make sure it sends the word "passive" right after you log in successfully. It should work as a toggle.

Jeff
 
Hi Jeff,

Thanks for you reply!

Hmm, where would I find the sysbk code, or are you meaning the source code of this sysbk application? I don't really to recompile such tool only to disable passive mode...
 
I find them at:

/usr/local/sysbk/

and subdirectories.

However, sysbk calls ncftp_put, and ncftp_put appears to try passive on and off, and use what works. I just examined the sysbk code at /usr/local/sysbk/internals, and I can't find anything that would change that default behavior.

The first step I would take at this point would be to see if I could turn on passive ftp in the firewall.

In fact that is what I do in my installs.

If you can't do that, I'd try to find a forum where sysbk is discussed, and ask there.

Jeff
 
wdeboer,
Try uploading something to your backup server using ncftp via ssh so you can get it's real return status.

Just to make sure you have double checked the file it's supposed to be uploading in?
 
Aha, when I try to access the FTP via ncftp. It's unable to connect to the server "Operation time out".

I will ask the smart guys about this problem, maybe outgoing traffic is blocked? Then they can directly fix the PASV mode issue ;)
 
This may be the answer

Are you backing up to a server running proftpd, or some other ftp server?

We started backing up to a server running a different ftp server daemon this weekend, and we had the same problem.

It took a bit of time to realize that while proftpd enforces chroot on ftp users, other ftp servers don't.

And the servers don't seem to return an error if you try to write to a non-existent directory.

So we were in reality attempting to upload to /backup when we should have been uploading to backup (without the slash).

So try changing "/backup" to "backup" and see if that solves the problem.

It did for us.

Jeff
 
Back
Top