0

I want to do full backup of my cloud image to my FTP server by using this command:

/sbin/dump -0uan -f - / | gzip -9 

How do I send this to FTP server just by adding | ftp ... ?

MatBanik
  • 379
  • 3
  • 7
  • 28

1 Answers1

1

Try using curl:

... | curl -u User:Pass ftp://ftpserver/Folder/filename -T -

Found this at http://hintsforums.macworld.com/archive/index.php/t-44719.html

It seems you can also "invoke" a pipe from the ftp client itself, once you're logged in:

put "| command" myfile.dmp
Eduardo Ivanec
  • 14,881
  • 1
  • 37
  • 43