]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - lftp/rc
lftp/rc: No retries after a failed connection.
[config/dotfiles.git] / lftp / rc
diff --git a/lftp/rc b/lftp/rc
index 3717a064d717cc8f816c87ae3b49cd699f377ab4..90ac4984b2138a9e233710f3e99c842a5cdd99cb 100644 (file)
--- a/lftp/rc
+++ b/lftp/rc
@@ -27,13 +27,17 @@ set bmk:save-passwords yes
 # Use a colorized prompt. Hostname in green, current directory in blue.
 set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % "
 
+# No retries after a failed connection, prevents (long) delays e.g. for
+# automated jobs.
+set net:max-retries 1
+
 
 # ALIASES
 
 # Create "sync" command which syncs local directories with remote ones and
 # transfers all missing/outdated files. Local files which don't exist anymore
 # are removed on the server.
-alias sync mirror --verbose --reverse --delete --dereference --exclude .DS_Store
+alias sync mirror --verbose --reverse --delete --dereference
 
 # Create "..", "..." and "...." commands to go up directory in the tree.
 alias .. cd ..