mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 17fbd63c6952159d31f0a83316e5ce7edb4390b2
parent 540b94f942de2f448f821e0f6fdcd54cac206d82
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 26 Oct 2013 23:55:33 +0200

+lftpsync +myrsync

Diffstat:
lftpsync | 18++++++++++++++++++
myrsync | 1+
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/lftpsync b/lftpsync @@ -0,0 +1,18 @@ +#!/bin/bash + +# $1 is server +# $2 is user +# $3 is password +# $4 is source dir +# $5 is target dir + +SERVER=$1 +USER=$2 +PASSWORD=$3 +LOCAL=$4 +REMOTE=$5 +lftp -c "open ftp://$USER:$PASSWORD@$SERVER; +lcd $LOCAL; +cd $REMOTE +mirror --reverse --verbose" + diff --git a/myrsync b/myrsync @@ -0,0 +1 @@ +rsync -avzPy --progress $*