1

Bash Website Mirror lftp

view story
linux-howto

http://crunchbang.org – Hi #!ers!I'm trying to make a bash script to mirror/sync a few of my websites. I'm new to bash but have some programming experience. This is what I've got currently...Arg 1 is the site name (acts as local path too), arg 2 is remote path, arg 3 is lftp bookmark name.How it works (I think):Connects and starts a mirror, outputting actions to a log file, if that completes...make an archive of the site, if that completes...echo confirmation and send desktop notification#!/bin/bash ARCHIVE="$1_$(date +%Y-%m-%d_%H-%M).tar.gz" if [ -d "/home/hozza/Sites/$1" ]; then (HowTos)