tremc remote file handling

This commit is contained in:
2023-07-03 16:12:42 +02:00
parent cfcfd53574
commit 4ebe302095
2 changed files with 118 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
filepath_remote="$(echo "$1" | sed 's/\[/\\[/g; s/\\]/\\]/g')"
filename="${1##*/}"
remote=rezepte.bocken.org
notify-send "Downloading $filename"
download_path="$HOME/dls"
download_file="$download_path/$filename"
rsync -rvPu "root@$remote:$filepath_remote" "$download_file"
clear
rifle "$download_file" || ranger $download_path