#!/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 REMOVE_ALL_BUT_N_FULL=4 REMOVE_OLDER_THAN=1Y FULL_IF_OLDER_THAN=3M source "$HOME/.duplicity.conf" SOURCE=/ print_help() { cat <