added owncloud sync helper function

This commit is contained in:
Alexander Bocken 2020-10-02 15:33:22 +02:00
parent 516a0a7b2d
commit ffc4b02130
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

7
.local/bin/tools/polybox_sync Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Required if run as a cronjob:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
export PASSWORD_STORE_GPG_OPTS="--homedir=$HOME/.local/share/gnupg"
export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
ping 1.1.1.1 -c 1 && owncloudcmd -s -u abocken -p "$(pass ETH/nETHz\ -\ abocken@ethz.ch)" $HOME/eth/polybox https://polybox.ethz.ch