Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ For the [Google Cloud Storage](https://cloud.google.com/storage/) storage backen
* [boto](https://github.com/boto/boto) (may already have been installed with duplicity)
* [gsutil](https://cloud.google.com/storage/docs/gsutil) *`optional`*

For the [Cloud File](Example Hubic) storage backend *`optional`*
* [python-pip](https://pypi.org/project/pip/)
* [pyrax](https://github.com/pycontribs/pyrax)

## Usage

Expand Down
1 change: 1 addition & 0 deletions duplicity-backup.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/"
#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"
#DEST="cf+hubic://some_dir"


# ------------------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion duplicity-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,11 @@ get_remote_file_size()
TMPDEST="${DEST#file://*}"
SIZE=$(du -hs "${TMPDEST}" | awk '{print $1}')
;;
"cf")
FRIENDLY_TYPE_NAME="Cloud File"
TMPDEST="${DEST}"
SIZE=$(duplicity collection-status "${TMPDEST}")
;;
"gs")
FRIENDLY_TYPE_NAME="Google Cloud Storage"
if ${GSCMD_AVAIL} ; then
Expand Down Expand Up @@ -756,7 +761,7 @@ get_remote_file_size()
echo -e "${SIZE}\t${FRIENDLY_TYPE_NAME} type backend"
else
echo "Destination disk use information is currently only available for the following storage backends:"
echo "File, SSH, Amazon S3, Google Cloud and Backblaze B2"
echo "File, SSH, Amazon S3, Google Cloud, Cloud File and Backblaze B2"
fi
echo
}
Expand Down