Compare commits

..

13 commits
v1.5.0 ... dev

Author SHA1 Message Date
zertrin
c78676ab9d Try to fix travis CI 2018-05-22 11:59:24 +08:00
zertrin
2dec3ed145 Update README.md 2018-05-22 11:35:35 +08:00
zertrin
c56e78a463 Update changelog with release date for v1.6.0 2018-05-22 11:23:51 +08:00
zertrin
27785d0ad0 Update changelog and bump version to v1.6.0 2018-05-22 11:20:53 +08:00
zertrin
4dd6ed1ee2 Fix issue #177: bug in cleanup action 2018-05-22 11:10:06 +08:00
zertrin
5cad03cb3e
Merge pull request #175 from elisman/patch-1
Removed SSH backend scheme example
2018-02-27 10:10:22 +08:00
Elisei Rotaru
f71dd556dc
Removed SSH backend scheme example
Removed SSH backend scheme example as it is not supported anymore by duplicity. As of version v0.7.01 (2015/01/11) ssh is an unsupported backend scheme. Using it with a newer release throws an error (UnsupportedBackendScheme: scheme not supported in url).
2018-02-21 11:28:03 +01:00
zertrin
77ecc4318f
Update Changelog 2018-02-03 11:40:29 +01:00
zertrin
99b2512789
Merge pull request #174 from xmatthias/fix_swift
unset swift variables
2018-02-03 11:37:45 +01:00
zertrin
4779ee4d1b
Merge branch 'dev' into fix_swift 2018-02-03 11:37:07 +01:00
zertrin
96a64148fd
Merge pull request #173 from xmatthias/dropbox
introduce dropbox functionality
2018-02-03 11:36:20 +01:00
Matthias Voppichler
6140c226db unset swift variables 2018-01-31 22:52:28 +01:00
Matthias Voppichler
18ef8983aa introduce dropbox functionality 2018-01-31 22:34:06 +01:00
5 changed files with 49 additions and 22 deletions

View file

@ -3,12 +3,8 @@ language: bash
# Use container-based infrastructure for quicker build start-up
sudo: false
addons:
apt:
sources:
- debian-sid
packages:
- shellcheck
before_script:
- shellcheck --version
script:
- shellcheck -e SC2034 duplicity-backup.sh duplicity-backup.conf.example

View file

@ -1,6 +1,10 @@
vX.X.X (unreleased)
===================
* Placeholder for next release
v1.6.0 (2018-05-22)
===================
* Add support for Dropbox backend (by xmatthias)
* Fix issue #177: bug in `--cleanup` action (thanks smcgrat)
v1.5.0 (2018-01-15)
===================
@ -12,7 +16,7 @@ v1.4.3 (2017-10-30)
v1.4.2 (2017-10-30)
===================
* Remove VERSION file and hardcode it directly in the script.
* Remove VERSION file and hardcode it directly in the script. Fix issue #164 (thanks regelga)
v1.4.1 (2017-10-04)
===================

View file

@ -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 version do:
If you prefer the stable (but old) version do:
git checkout stable
... or if you want the latest version (might still have bugs), then:
... or if you want the normal version, then:
git checkout master
... or if you like living on the edge, you can stay at the development version which is automatically cloned.
... 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 just download the ZIP file:
| Version | Download link |
|---------------|-------------------------------------------------------------------|
| stable | https://github.com/zertrin/duplicity-backup.sh/archive/stable.zip |
| stable (old) | https://github.com/zertrin/duplicity-backup.sh/archive/stable.zip |
| normal | https://github.com/zertrin/duplicity-backup.sh/archive/master.zip |
| bleeding-edge | https://github.com/zertrin/duplicity-backup.sh/archive/dev.zip |
| latest | https://github.com/zertrin/duplicity-backup.sh/archive/dev.zip |
### 2. Configure the script

View file

@ -2,7 +2,7 @@
#
# Copyright (c) 2008-2010 Damon Timm.
# Copyright (c) 2010 Mario Santagiuliana.
# Copyright (c) 2012-2016 Marc Gallet.
# Copyright (c) 2012-2018 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,6 +174,13 @@ 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

View file

@ -2,7 +2,7 @@
#
# Copyright (c) 2008-2010 Damon Timm.
# Copyright (c) 2010 Mario Santagiuliana.
# Copyright (c) 2012-2017 Marc Gallet.
# Copyright (c) 2012-2018 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.5.0"
DBSH_VERSION="v1.6.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,7 +342,13 @@ fi
# ------------------------- Setting up variables ------------------------
STATIC_OPTIONS="${DRY_RUN}${STATIC_OPTIONS}"
if [ -n "${DRY_RUN}" ]; then
STATIC_OPTIONS="${DRY_RUN} ${STATIC_OPTIONS}"
fi
if [ -n "${STORAGECLASS}" ]; then
STATIC_OPTIONS="${STATIC_OPTIONS} ${STORAGECLASS}"
fi
SIGN_PASSPHRASE=${PASSPHRASE}
@ -354,6 +360,7 @@ export SWIFT_USERNAME
export SWIFT_PASSWORD
export SWIFT_AUTHURL
export SWIFT_AUTHVERSION
export DPBX_ACCESS_TOKEN
export PASSPHRASE
export SIGN_PASSPHRASE
@ -448,6 +455,12 @@ 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)"
@ -481,6 +494,8 @@ 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"
}
@ -825,7 +840,6 @@ duplicity_backup()
{
{
eval "${ECHO}" "${DUPLICITY}" "${OPTION}" "${VERBOSITY}" "${STATIC_OPTIONS}" \
"${STORAGECLASS}" \
"${ENCRYPT}" \
"${EXCLUDE}" \
"${INCLUDE}" \
@ -840,6 +854,7 @@ duplicity_cleanup_failed()
{
{
eval "${ECHO}" "${DUPLICITY}" "${OPTION}" "${VERBOSITY}" "${STATIC_OPTIONS}" \
"${ENCRYPT}" \
"${DEST}"
} || {
BACKUP_ERROR=1
@ -1004,7 +1019,7 @@ case "${COMMAND}" in
OPTION="cleanup"
if [ -z "${DRY_RUN}" ]; then
STATIC_OPTIONS="--force"
STATIC_OPTIONS="${STATIC_OPTIONS} --force"
fi
echo -e "-------[ Cleaning up Destination ]-------\n"
@ -1151,6 +1166,11 @@ 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