Duply with Windows#
Installation#
install cygwin: https://cygwin.com/
first just install base packages
install the following additional packages (by just starting
setup-x86_64.exeagain):python3
python36-pip
python3-devel
gcc-core
librsync-devel
gnupg2
nano
update
binutilsto newest (test) version (2.31.1-1)update pip (optional):
pip3 install --upgrade pipinstall duplicity:
pip3 install duplicitycreate bin dir:
mkdir binchange to that dir:
cd bincreate link to gpg2:
ln -s /usr/bin/gpg2.exe gpg.exedownload duply: https://duply.net/
unpack duply
copy duply script to bin dir:
cp /cygdrive/c/Users/<your_username>/Downloads/<duply_dir>/duply .change back to home dir
cd
Configuration of .bashrc#
edit .bashrc:
nano .bashrcadd
export PATH=/home/<your_username>/bin:$PATHswitch language to english (optional):
export LANG='en_US.UTF-8'add
ulimit -n 1024
Check Installation and configuration#
The following commands should execute without error or warning:
duplicity --versionduply --versiongpg --version
Generate GPG Key#
run
gpg --full-gen-keyselect default values but 4096 Bit
select a password for the key
copy the public key id to somewhere else for later use - it is a sring like
7A6E4278E2CAF3FA16240DADC94F3BEAB276F92D
Configure Duply#
create a profile:
duply <profile_name> createedit config:
nano .duply/<profile_name>/confenter your gpg public key it to
GPG_KEYenter the password to
GPG_PWenter the
TARGETlike a cloud space or something elsefor
SOURCEjust enter/- details will be configured in an other file laterremove comment infront of
GPG_OPTSand writeGPG_OPTS='--pinentry-mode loopback'
edit exclude file:
nano .duply/<profile_name>/exclude
This is how you can add your Cygwin home folder and your Windows
pictures folder to backup and ignore evenrything else - **
+ /home/<your_username>
+ /cygdrive/c/Users/<your_username>/Pictures
- **
Edit gpg-agent.conf#
edit gpg-agent.conf:
nano .gnupg/gpg-agent.confadd this line:
allow-loopback-pinentry
Using Backblaze#
install client:
pip3 install b2sdkuse this as
TARGET:b2://[keyID]:[application key]@[B2 bucket name]
Start Backup#
start the first backup:
duply test backup