upload
This commit is contained in:
parent
ca80ee6a82
commit
9ff88721dc
3 changed files with 25 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#:use-module (gnu packages messaging)
|
||||
#:use-module (gnu packages glib)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages rsync)
|
||||
#:use-module (gnu packages gnome)
|
||||
#:use-module (gnu packages fonts)
|
||||
#:use-module (gnu packages kde-plasma)
|
||||
|
|
@ -64,6 +65,7 @@ alacritty
|
|||
git
|
||||
pidgin
|
||||
ark
|
||||
rsync
|
||||
cliphist
|
||||
quickshell
|
||||
nextcloud-client
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ input {
|
|||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
// focus-follows-mouse max-scroll-amount="0%"
|
||||
|
||||
//disable-power-key-handling
|
||||
disable-power-key-handling
|
||||
}
|
||||
|
||||
// You can configure outputs by their name, which you can find
|
||||
|
|
|
|||
22
scripts/bin/upload-to-server
Executable file
22
scripts/bin/upload-to-server
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Ошибка: требуется 2 аргумента."
|
||||
echo "Использование: $0 {movies|series|music} /путь/к/источнику"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TYPE="$1"
|
||||
SRC="$2"
|
||||
|
||||
case "$TYPE" in
|
||||
movies|series|music)
|
||||
;;
|
||||
*)
|
||||
echo "Ошибка: первый аргумент должен быть 'movies', 'series' или 'music'."
|
||||
echo "Использование: $0 {movies|series|music} /путь/к/источнику"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
rsync -rhvP "$SRC" "mediamanager@jellyfin.kylekrein.com:/zstorage/media/$TYPE/"
|
||||
Loading…
Add table
Add a link
Reference in a new issue