From: Simon Ruderich Date: Sun, 15 Jun 2008 16:08:46 +0000 (+0100) Subject: Added lftp "sync" command. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=7a4b0646c349a43f831edf01f299727757777b76;p=config%2Fdotfiles.git Added lftp "sync" command. It uploads all changed files to the server and removes old files on the server. --- diff --git a/rc b/rc index e49d766..50f89c7 100644 --- a/rc +++ b/rc @@ -6,3 +6,8 @@ set ftp:list-options -a # Store passwords in the bookmarks file. set bmk:save-passwords yes + +# Create new "command" sync which will sync local directories with remote ones +# and transfer all missing/outdated files. Local files which don't exist +# anymore are removed on the server. +alias sync mirror --verbose --reverse --delete --exclude .DS_Store