configs/arch-config/scripts/in_path/sc-manga-update

55 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-02-17 15:17:17 +01:00
#!/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
2022-04-18 17:00:44 +02:00
echo Kavita books
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Unterhaltung/ ${user}@${server}:/mnt/books/kavita/books/
2022-02-17 15:17:17 +01:00
# manga
2022-04-18 17:00:44 +02:00
echo Kavita manga
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Manga/ ${user}@${server}:/mnt/books/kavita/manga/
2022-02-17 15:17:17 +01:00
# Tech
2022-04-18 17:00:44 +02:00
echo Kavita tech
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Tech/ ${user}@${server}:/mnt/books/kavita/tech/
2022-02-17 15:17:17 +01:00
# other
2022-04-18 17:00:44 +02:00
echo Kavita other
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/other/ ${user}@${server}:/mnt/books/kavita/other/
2022-02-17 15:17:17 +01:00
# transfer to komga
# TODO
# transfer to kavita-nightly
# books
2022-04-18 17:00:44 +02:00
echo Kavita Nightly books
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Unterhaltung/ ${user}@${server}:/mnt/books/kavita-nightly/books/
2022-02-17 15:17:17 +01:00
# manga
2022-04-18 17:00:44 +02:00
echo Kavita Nightly manga
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Manga/ ${user}@${server}:/mnt/books/kavita-nightly/manga/
2022-02-17 15:17:17 +01:00
# Tech
2022-04-18 17:00:44 +02:00
echo Kavita Nightly tech
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/Tech/ ${user}@${server}:/mnt/books/kavita-nightly/tech/
2022-02-17 15:17:17 +01:00
# other
2022-04-18 17:00:44 +02:00
echo Kavita Nightly other
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" /home/marc/Nextcloud/Books/other/ ${user}@${server}:/mnt/books/kavita-nightly/other/
2022-03-28 19:57:37 +02:00
# download from kavita
# books
2022-04-18 17:00:44 +02:00
echo Downloading books
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" ${user}@${server}:/mnt/books/kavita/books/ /home/marc/Nextcloud/Books/Unterhaltung/
2022-03-28 19:57:37 +02:00
# manga
2022-04-18 17:00:44 +02:00
echo Downloading manga
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" ${user}@${server}:/mnt/books/kavita/manga/ /home/marc/Nextcloud/Books/Manga/
2022-03-28 19:57:37 +02:00
# Tech
2022-04-18 17:00:44 +02:00
echo Downloading tech
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" ${user}@${server}:/mnt/books/kavita/tech/ /home/marc/Nextcloud/Books/Tech/
2022-03-28 19:57:37 +02:00
# other
2022-04-18 17:00:44 +02:00
echo Downloading other
rsync -ur --progress --bwlimit=4M -e "ssh -i $sshkeypath -p $port" ${user}@${server}:/mnt/books/kavita/other/ /home/marc/Nextcloud/Books/other/