Skip to content

Instantly share code, notes, and snippets.

View bensbrowning's full-sized avatar

Ben Browning bensbrowning

View GitHub Profile
@bensbrowning
bensbrowning / lftp-mirror
Last active November 6, 2019 07:05
lftp mirror script for cron
#!/bin/bash
login="user"
pass="pass"
host="foo.bar.com"
remote_dir="/path/on/foo/bar/"
local_dir="/home/you/foobar-mirror/"
log_file="/tmp/lftp-mirror.log"