Add script to update books and mangas
This commit is contained in:
parent
2c9f91e2f5
commit
3b3980ea02
32
arch-config/scripts/in_path/sc-manga-update
Executable file
32
arch-config/scripts/in_path/sc-manga-update
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
user=exu
|
||||
server=172.18.50.100
|
||||
port=22
|
||||
sshkeypath=$HOME/.ssh/id_ed25519
|
||||
# don't transfer to the storage box directly, leads to mangled file names
|
||||
# see: https://serverfault.com/a/765951
|
||||
|
||||
# transfer to kavita
|
||||
# books
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Unterhaltung/ ${user}@${server}:/mnt/books/kavita/books/
|
||||
# manga
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Manga/ ${user}@${server}:/mnt/books/kavita/manga/
|
||||
# Tech
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Tech/ ${user}@${server}:/mnt/books/kavita/tech/
|
||||
# other
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/other/ ${user}@${server}:/mnt/books/kavita/other/
|
||||
|
||||
# transfer to komga
|
||||
# TODO
|
||||
|
||||
# transfer to kavita-nightly
|
||||
# books
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Unterhaltung/ ${user}@${server}:/mnt/books/kavita-nightly/books/
|
||||
# manga
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Manga/ ${user}@${server}:/mnt/books/kavita-nightly/manga/
|
||||
# Tech
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Tech/ ${user}@${server}:/mnt/books/kavita-nightly/tech/
|
||||
# other
|
||||
rsync -uvrL --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/other/ ${user}@${server}:/mnt/books/kavita-nightly/other/
|
Loading…
Reference in New Issue
Block a user