dotfiles/.scripts/put.sh
Gregor Feierabend cf6147c7b4 config update
2021-07-15 19:41:38 +02:00

12 lines
376 B
Bash
Executable file

#!/bin/zsh
mkdir -p /tmp/Nextcloud/
for f in $1/*; do
echo Processing $f ...
echo put \"$f\" > /tmp/Nextcloud/nxtcldsync.lst
echo close >> /tmp/Nextcloud/nxtcldsync.lst
echo exit >> /tmp/Nextcloud/nxtcldsync.lst
cadaver -r /tmp/Nextcloud/nxtcldsync.lst\
https://netdistortion.com/remote.php/dav/files/117/dump
echo "RETURN: " $?
rm /tmp/Nextcloud/nxtcldsync.lst
done