Configs/Server/Repo.Update.sh

37 lines
570 B
Bash
Raw Normal View History

#!/bin/sh
cd "$( dirname "$( realpath "$0" )" )"
2023-04-14 18:47:33 +02:00
. ../Lib.sh
2023-04-14 18:47:33 +02:00
h=home/pi
2023-04-14 18:47:33 +02:00
mkcd ./Root
for p in \
diycron
do
cp -v /etc/$p ./etc/$p
done
2023-03-08 17:44:03 +01:00
2023-04-14 18:47:33 +02:00
cp -v \
/etc/systemd/system/diycron.service \
./etc/systemd/system/
2023-03-06 12:07:10 +01:00
2023-04-14 18:47:33 +02:00
cp -v \
/etc/nginx/sites-available/*.conf /etc/nginx/sites-available/*.old \
./etc/nginx/sites-available/
cp -v \
/Server/Scripts/Backup/*.sh /Server/Scripts/Backup/*.cfg \
./Server/Scripts/Backup/
2023-04-14 22:15:31 +02:00
cpdir Transfers/aria2/Conf
2023-04-14 18:47:33 +02:00
cd ..
mkcd ./Home
2023-04-14 22:15:31 +02:00
#mkdir -vp ./.config
#for p in \
# aria2
#do
# cp -vrT /$h/.config/$p ./.config/$p
#done