Compare commits
No commits in common. "dev" and "v1.5.0" have entirely different histories.
5 changed files with 22 additions and 49 deletions
|
|
@ -3,8 +3,12 @@ language: bash
|
|||
# Use container-based infrastructure for quicker build start-up
|
||||
sudo: false
|
||||
|
||||
before_script:
|
||||
- shellcheck --version
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- debian-sid
|
||||
packages:
|
||||
- shellcheck
|
||||
|
||||
script:
|
||||
- shellcheck -e SC2034 duplicity-backup.sh duplicity-backup.conf.example
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
vX.X.X (unreleased)
|
||||
===================
|
||||
|
||||
v1.6.0 (2018-05-22)
|
||||
===================
|
||||
* Add support for Dropbox backend (by xmatthias)
|
||||
* Fix issue #177: bug in `--cleanup` action (thanks smcgrat)
|
||||
* Placeholder for next release
|
||||
|
||||
v1.5.0 (2018-01-15)
|
||||
===================
|
||||
|
|
@ -16,7 +12,7 @@ v1.4.3 (2017-10-30)
|
|||
|
||||
v1.4.2 (2017-10-30)
|
||||
===================
|
||||
* Remove VERSION file and hardcode it directly in the script. Fix issue #164 (thanks regelga)
|
||||
* Remove VERSION file and hardcode it directly in the script.
|
||||
|
||||
v1.4.1 (2017-10-04)
|
||||
===================
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -68,23 +68,23 @@ You can clone the repository (which makes it easy to get future updates):
|
|||
|
||||
git clone https://github.com/zertrin/duplicity-backup.sh.git duplicity-backup
|
||||
|
||||
If you prefer the stable (but old) version do:
|
||||
If you prefer the stable version do:
|
||||
|
||||
git checkout stable
|
||||
|
||||
... or if you want the normal version, then:
|
||||
... or if you want the latest version (might still have bugs), then:
|
||||
|
||||
git checkout master
|
||||
|
||||
... or if you like living on the edge (or need the latest bugfixes), you can stay at the development version which is automatically cloned.
|
||||
... or if you like living on the edge, you can stay at the development version which is automatically cloned.
|
||||
|
||||
Or just download the ZIP file:
|
||||
|
||||
| Version | Download link |
|
||||
|---------------|-------------------------------------------------------------------|
|
||||
| stable (old) | https://github.com/zertrin/duplicity-backup.sh/archive/stable.zip |
|
||||
| stable | https://github.com/zertrin/duplicity-backup.sh/archive/stable.zip |
|
||||
| normal | https://github.com/zertrin/duplicity-backup.sh/archive/master.zip |
|
||||
| latest | https://github.com/zertrin/duplicity-backup.sh/archive/dev.zip |
|
||||
| bleeding-edge | https://github.com/zertrin/duplicity-backup.sh/archive/dev.zip |
|
||||
|
||||
### 2. Configure the script
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Copyright (c) 2008-2010 Damon Timm.
|
||||
# Copyright (c) 2010 Mario Santagiuliana.
|
||||
# Copyright (c) 2012-2018 Marc Gallet.
|
||||
# Copyright (c) 2012-2016 Marc Gallet.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -108,13 +108,13 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/"
|
|||
#DEST="ftpes://user[:password]@other.host[:port]/some_dir"
|
||||
#DEST="rsync://user@host.com[:port]//absolute_path"
|
||||
#DEST="scp://user[:password]@other.host[:port]/[/]some_dir"
|
||||
#DEST="ssh://user[:password]@other.host[:port]/[/]some_dir"
|
||||
#DEST="sftp://user[:password]@other.host[:port]/[/]some_dir"
|
||||
#DEST="file:///home/foobar_user_name/new-backup-test/"
|
||||
#DEST="imap[s]://user[:password]@host.com[/from_address_prefix]"
|
||||
#DEST="webdav[s]://user[:password]@other.host[:port]/some_dir"
|
||||
#DEST="gdocs://foobar_google_account/some_dir"
|
||||
#DEST="swift://foobar_swift_container/some_dir"
|
||||
#DEST="dpbx:///foobar_swift_container/some_dir"
|
||||
#DEST="b2://some_account_id[:some_application_key]@some_bucket_name/some_dir"
|
||||
|
||||
|
||||
|
|
@ -174,13 +174,6 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/"
|
|||
#SWIFT_AUTHURL="foobar_swift_authurl"
|
||||
#SWIFT_AUTHVERSION="2"
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# DROPBOX INFORMATION
|
||||
# ------------------------------------------------------------------------------
|
||||
# Uncomment these lines if you're using Dropbox
|
||||
#
|
||||
#DPBX_ACCESS_TOKEN="foobar_dropbox_access_token"
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# INCLUDE LIST OF DIRECTORIES
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Copyright (c) 2008-2010 Damon Timm.
|
||||
# Copyright (c) 2010 Mario Santagiuliana.
|
||||
# Copyright (c) 2012-2018 Marc Gallet.
|
||||
# Copyright (c) 2012-2017 Marc Gallet.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -45,7 +45,7 @@ CONFIG="duplicity-backup.conf"
|
|||
# Script Happens Below This Line - Shouldn't Require Editing #
|
||||
##############################################################
|
||||
|
||||
DBSH_VERSION="v1.6.0"
|
||||
DBSH_VERSION="v1.5.0"
|
||||
|
||||
# make a backup of stdout and stderr for later
|
||||
exec 6>&1
|
||||
|
|
@ -191,7 +191,7 @@ while getopts ":c:t:bfvelsqndhV-:" opt; do
|
|||
QUIET=1
|
||||
;;
|
||||
dry-run)
|
||||
DRY_RUN="--dry-run"
|
||||
DRY_RUN="--dry-run "
|
||||
;;
|
||||
debug)
|
||||
ECHO=$(which echo)
|
||||
|
|
@ -218,7 +218,7 @@ while getopts ":c:t:bfvelsqndhV-:" opt; do
|
|||
l) COMMAND="list-current-files";;
|
||||
s) COMMAND="collection-status";;
|
||||
q) QUIET=1;;
|
||||
n) DRY_RUN="--dry-run";; # dry run
|
||||
n) DRY_RUN="--dry-run ";; # dry run
|
||||
d) ECHO=$(which echo);; # debug
|
||||
h)
|
||||
usage
|
||||
|
|
@ -342,13 +342,7 @@ fi
|
|||
|
||||
# ------------------------- Setting up variables ------------------------
|
||||
|
||||
if [ -n "${DRY_RUN}" ]; then
|
||||
STATIC_OPTIONS="${DRY_RUN} ${STATIC_OPTIONS}"
|
||||
fi
|
||||
|
||||
if [ -n "${STORAGECLASS}" ]; then
|
||||
STATIC_OPTIONS="${STATIC_OPTIONS} ${STORAGECLASS}"
|
||||
fi
|
||||
STATIC_OPTIONS="${DRY_RUN}${STATIC_OPTIONS}"
|
||||
|
||||
SIGN_PASSPHRASE=${PASSPHRASE}
|
||||
|
||||
|
|
@ -360,7 +354,6 @@ export SWIFT_USERNAME
|
|||
export SWIFT_PASSWORD
|
||||
export SWIFT_AUTHURL
|
||||
export SWIFT_AUTHVERSION
|
||||
export DPBX_ACCESS_TOKEN
|
||||
export PASSPHRASE
|
||||
export SIGN_PASSPHRASE
|
||||
|
||||
|
|
@ -455,12 +448,6 @@ else
|
|||
DEST_IS_S3=false
|
||||
fi
|
||||
|
||||
if [ "$(echo "${DEST}" | cut -c 1,4)" = "dpbx" ]; then
|
||||
DEST_IS_DPBX=true
|
||||
else
|
||||
DEST_IS_DPBX=false
|
||||
fi
|
||||
|
||||
if [ "$(echo "${DEST}" | cut -c 1,2)" = "b2" ]; then
|
||||
DEST_IS_B2=true
|
||||
B2CMD="$(which b2)"
|
||||
|
|
@ -494,8 +481,6 @@ check_variables ()
|
|||
config_sanity_fail "An s3 DEST has been specified, but AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY have not been configured"
|
||||
[[ ( ${DEST_IS_GS} = true && (${GS_ACCESS_KEY_ID} = "foobar_gcs_key_id" || ${GS_SECRET_ACCESS_KEY} = "foobar_gcs_secret_id" )) ]] && \
|
||||
config_sanity_fail "A Google Cloud Storage DEST has been specified, but GS_ACCESS_KEY_ID or GS_SECRET_ACCESS_KEY have not been configured"
|
||||
[[ ( ${DEST_IS_DPBX} = true && (${DPBX_ACCESS_TOKEN} = "foobar_dropbox_access_token" )) ]] && \
|
||||
config_sanity_fail "A Dropbox DEST has been specified, but DPBX_ACCESS_TOKEN has not been configured"
|
||||
[[ ! -z "${INCEXCFILE}" && ! -f ${INCEXCFILE} ]] && config_sanity_fail "The specified INCEXCFILE ${INCEXCFILE} does not exists"
|
||||
}
|
||||
|
||||
|
|
@ -840,6 +825,7 @@ duplicity_backup()
|
|||
{
|
||||
{
|
||||
eval "${ECHO}" "${DUPLICITY}" "${OPTION}" "${VERBOSITY}" "${STATIC_OPTIONS}" \
|
||||
"${STORAGECLASS}" \
|
||||
"${ENCRYPT}" \
|
||||
"${EXCLUDE}" \
|
||||
"${INCLUDE}" \
|
||||
|
|
@ -854,7 +840,6 @@ duplicity_cleanup_failed()
|
|||
{
|
||||
{
|
||||
eval "${ECHO}" "${DUPLICITY}" "${OPTION}" "${VERBOSITY}" "${STATIC_OPTIONS}" \
|
||||
"${ENCRYPT}" \
|
||||
"${DEST}"
|
||||
} || {
|
||||
BACKUP_ERROR=1
|
||||
|
|
@ -1019,7 +1004,7 @@ case "${COMMAND}" in
|
|||
OPTION="cleanup"
|
||||
|
||||
if [ -z "${DRY_RUN}" ]; then
|
||||
STATIC_OPTIONS="${STATIC_OPTIONS} --force"
|
||||
STATIC_OPTIONS="--force"
|
||||
fi
|
||||
|
||||
echo -e "-------[ Cleaning up Destination ]-------\n"
|
||||
|
|
@ -1166,11 +1151,6 @@ unset AWS_ACCESS_KEY_ID
|
|||
unset AWS_SECRET_ACCESS_KEY
|
||||
unset GS_ACCESS_KEY_ID
|
||||
unset GS_SECRET_ACCESS_KEY
|
||||
unset SWIFT_USERNAME
|
||||
unset SWIFT_PASSWORD
|
||||
unset SWIFT_AUTHURL
|
||||
unset SWIFT_AUTHVERSION
|
||||
unset DPBX_ACCESS_TOKEN
|
||||
unset PASSPHRASE
|
||||
unset SIGN_PASSPHRASE
|
||||
unset FTP_PASSWORD
|
||||
|
|
|
|||
Loading…
Reference in a new issue