Backup via pipe to ftp or ssh....

admonet

Verified User
Joined
Oct 30, 2005
Messages
35
Can I have the reseller backups piped to an ftp location? Like so:

tar cvf - <directory you wish to tar up> | ncftpput -u FTPUsername -p FTPPassword-c <ftp hostname or ip> /file_on_ftp_server.tar

That'd be so great to backup all my resellers via FTP and not have to store them locally then rsync them over. Any ideas on how we can stream the backup live?


Adam
 
You can configure remote ftp backups for reseller level backups. Are you referring to a different kind of backup?
 
Last edited:
Right I know you can do remote ftp backups but why can't we stream the file in realtime. Even remote ftp backups probably store the file locally and then ftp... why not tar+gzip on the fly whline sending to ftp like was shown in the command above......
 
You can certainly stream files in realtime, as long as you know the syntax and the programs you're using allow piping.

I didn't check your syntax; I don't have the time.

Jeff
 
I'm not looking for someone to verify the syntax I posted. I am just wondering if there's any way to intercept DA's way of tar/gzipping the backups and instead of writing them to the disk locally, piping them to an ftp server in realtime.....

Adam
 
Which backup program?

I don't know about the user backups (and reseller backups are the same as user backups) but system backups are simply a front-end to sysbk; you can change it to do anything you want.

Jeff
 
Yeah I was actually thinking of the reseller backups because of their ability to be re-created with DA..... durn.

Adam
 
With the reseller cron backups.. it says Day of the week.... 0-7 ... isn't is 0-6 where 0=Sunday .... with DA does 1=Sun??

Adam
 
Back
Top