From ab0cff3bb36721e982301e14435c0f4c8f313995 Mon Sep 17 00:00:00 2001 From: Einhard Leichtfuß Date: Thu, 4 Apr 2019 00:04:37 +0200 Subject: Add remote backup functionality Create wrapper functions that take a host and a function with named arguments. The supplied function is the to be executed on the specified host, which may be the empty string signifying local execution. These wrapper functions essentially export the to be run function and any of its recursive dependencies, further the named arguments as variables, to the remote host, and run the function remotely. That is, if the host is non-local. Also, - use appropriate function names to differentiate between destination and source host wherever applicable. - add comments, - enhance TODO and README, - rename some variables in order to increase consistency, - move some global declarations further upward, - make variables readonly when reasonable, - use named return and exit codes, - add a general `ask'-function. --- README | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 062c63e..1287b72 100644 --- a/README +++ b/README @@ -4,8 +4,14 @@ Dependencies ------------ +Most dependencies are required locally and remotely, as a huge part of the +script may be executed remotely. + - bash>=4.2 (test -v) -- ... +- rsync +- ssh +- coreutils (realpath, date) +- find Notes @@ -13,3 +19,5 @@ Notes Symbolic links are simply copied, thus linking to the backed-up filetree, not the backup-filetree itself. + +Dates are always calculated on the local host. -- cgit v1.2.3