From 2bf34f4efd5643b847170443ca9aa03dafed976c Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 1 Nov 2018 22:16:21 +0500 Subject: Update bin. --- d-backup | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 d-backup (limited to 'd-backup') diff --git a/d-backup b/d-backup new file mode 100755 index 0000000..090b672 --- /dev/null +++ b/d-backup @@ -0,0 +1,59 @@ +#!/bin/bash +# +# Example content of duplicity.conf, keep file root:root and only owner 0600 +# ---------------- 8< -------------------- +# FTP_PASSWORD="ftp_password" +# PASSPHRASE="passphrase" +# TARGET="sftp://server/path" +# ---------------- 8< -------------------- + +if [ ! $(whoami) = root ] ; then + echo "This script must be run by the user: root" + exit 1 +fi + +HOME=/home/anton + +source "$HOME/.duplicity.conf" +SOURCE=/ + +print_help() { + cat <