[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] backups (again!)



Eric E Moore wrote:


> create a .netrc file for the user doing backups (root?) this should
> look something like:
> 
> machine some.machine.shef.ac.uk
> login someusername
> password somepassword
> 
> then create a file with the following FTP commands:
> 
> open some.machine.shef.ac.uk
> put "|tar czf - /dir/to/backup/ /another/dir/ ..." filename.tar.gz
> bye


ah, the filename follows the "|tar " bit.  I didn't get that from the 
ftp man page (I did read it, honest).
thank, I'll try it.  Sounds like the most promising avenue in fact.


> then, just pipe the second file to ftp, and it will open a connection,
> log in, fork off a process to do the tar, upload it under the name
> filename.tar.gz, and disconnect.
> 
> for more details, see the ftp man page (esp. "file naming
> conventions") and the netrc manpage.  



-- 
  ------------------------------------------------
   Matt Fairtlough
   22 Harley Road
   Sheffield S11 9SE UK  tel. 0114 236 2067

___________________________________________________________________

Sheffield Linux User's Group - http://www.sheflug.co.uk . 
To unsubscribe from this list send mail to 
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.