X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=lib%2Fbackends%2Flocal.in;fp=lib%2Fbackends%2Flocal.in;h=069e201f6ac2f83890e17165c355ffc3be4bede0;hp=0000000000000000000000000000000000000000;hb=3c04ecde671ef12c01ff79393f936b879fb08f04;hpb=a8f65652866003814b6f2c79bec0165beee24ab9 diff --git a/lib/backends/local.in b/lib/backends/local.in new file mode 100644 index 0000000..069e201 --- /dev/null +++ b/lib/backends/local.in @@ -0,0 +1,33 @@ +# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- +# vim: set filetype=sh sw=3 sts=3 expandtab autoindent: + +function backend_local_init () { + # We're always available + return 0 +} + +function backend_local_host_available () { + if [ -n "$1" ]; then + eval "$2=The local backend does not support named hosts: '\$1'" + return 1 + fi + # The empty host (i.e., "local:") is always available + return 0 +} + +function backend_local_host_root () { + # We just use the entire filesystem + echo "" +} + +function backend_local_run () { + # Running locally is simple, just run the command + "$@" +} + +function backend_local_interpolate_vars () { + echo "" +} + +function backend_local_interpolate_value () { +}