How to Use wget for Updating a Mirror via FTP ?

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Assuming that databases are backed up daily to a folder on the remote filesystem, and a mirror of the remote filesystem was made using the -mirror switch for wget, what would a CRON job look like to have that FTP mirror updated daily via wget without downloading files that have not changed ?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Apparently it's as simple as using the --mirror flag just like the first fetching.

Code: [ Select ]
wget --mirror --ftp-user=user --ftp-password=pass -o /log.txt ftp://ftp.domain.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 31 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.