duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] duplicity & Backblaze B2 - shell script


From: Nate Eldredge
Subject: Re: [Duplicity-talk] duplicity & Backblaze B2 - shell script
Date: Fri, 2 Dec 2022 22:12:52 -0700 (MST)

It looks like you just copy-pasted the entire output of the `env` command to set all the environment variables the same as whatever your shell session had at the time. As far as I can tell, all of them are either unnecessary or counterproductive.

All you should really care about is the last line. (Actually the last two lines which seem to be one line that has been improperly split.) That's the duplicity command.

PASSPHRASE="passphrase" duplicity --allow-source-mismatch '/path/to/files' 
b2://8da2xxxxx@bucketname

On Fri, 2 Dec 2022, Jared Larsen via Duplicity-talk wrote:

Good evening,

I'm hoping someone can help me with this.  In the past I've been able to execute the following shell script using crontab in my installation of ubuntu to backup some files to backblaze b2 storage.

I set this up a few years ago on an older ubuntu 16-04 server but am now wanting to get it working again on a new ubuntu 20-04 server.

My problem is that I can't remember how I was able to setup all the configuration variables in the shell script below:

I'm just not sure what to change to adapt it to the new server. It's mostly greek to me.  I can't remember if I ran some kind of utility to set most of the configurations in this script or if I copied most of it from a sample that someone provided.

If anyone can help me understand how to modify this to my new server I would appreciate it.  I vaguely remember a forum post that I found that may have included most of the configuration values.

Text of  shell script below.  Thank you!:


#!/bin/bash
####################################
#
# Backup to backblaze b2 cloud storage
#
####################################

# duplicity command line command
SSH_AGENT_PID=21348
XDG_SESSION_ID=c5
GLADE_PIXMAP_PATH=:
SHELL=/bin/bash
TERM=xterm
XDG_MENU_PREFIX=xfce-
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
WINDOWID=56623110
USER=username
QT_ACCESSIBILITY=1
GLADE_MODULE_PATH=:
SSH_AUTH_SOCK=/tmp/ssh-lOvlF5aeTRwF/agent.21310
SESSION_MANAGER=local/ubuntu16-04:@/tmp/.ICE-unix/21369,unix/ubuntu16-04:/tmp/.ICE-unix/21369
XDG_CONFIG_DIRS=/etc/xdg
PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
DESKTOP_SESSION=xfce
PWD=/home/ishmot
LANG=en_US.UTF-8
SHLVL=1
HOME=/home/user
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-iva8aovVDw,guid=f3842bd6d7b9c74dc24603cf5a9a1c16
XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share
LESSOPEN=| /bin/lesspipe %s
DISPLAY=:10.0
XDG_RUNTIME_DIR=/run/user/1000
GLADE_CATALOG_PATH=:
XDG_CURRENT_DESKTOP=XFCE
PASSPHRASE="passphrase" duplicity --allow-source-mismatch '/path/to/files' b2://8da2xxxxx@bucketname


_______________________________________________
Duplicity-talk mailing list
Duplicity-talk@nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk


--
Nate Eldredge
nate@thatsmathematics.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]