Dateien nach "/" hochladen

This commit is contained in:
2025-12-11 14:49:40 +01:00
parent 03b7794d30
commit 409db0e9e8
4 changed files with 78 additions and 0 deletions

35
gesehen.sh Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
# usr/syno/bin
# Link erstellen ln -s /volume1/Backup/NAS_Scripte/porord.sh /usr/syno/bin/porord.sh
# >>/volume1/Backup/NAS_Scripte/LOG/$LOGFILE
# Logfile
NOW=`date +'%d.%m.%Y'`
LOGFILE="logVersch-$NOW.log"
# mv /volume1/Filesharing/!ALT_GESEHEN/* /volume1/Gesehen/
#mv /volume1/Filesharing/!ALT_GESEHEN/* /pfad/.[!.]* /pfad/.??* /volume1/Gesehen/
find /volume1/Filesharing/!ALT_GESEHEN/* \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/Filesharing/!ALT_GESEHEN/$RECYCLE.*' \) -exec mv {} /volume1/Gesehen/ \;
# Verschiebt alles in Por Root
#find /volume1/Filesharing/!ALT_GESEHEN/* \( -iname "*.mov" -o -iname "*.avi" -o -iname "*.mkv" -o -iname "*.wmv" -o -iname "*.iso" -o -iname "*.mp4" -o -iname "*.img" -o -iname "*.asf" -o -iname "*.mpg" -o -iname "*.mpeg" -o -iname "*.m4v" -o -iname "*.vob" -o -iname "*.flv" \) -type f \( ! -regex '/volume1/Filesharing/!ALT_GESEHEN/$RECYCLE.*' \) \( ! -regex '/volume1/Filesharing/!ALT_GESEHEN/!NEU/.*' \) \( ! -regex '/volume1/Filesharing/!ALT_GESEHEN/!OLD/.*' \) \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/Filesharing/!ALT_GESEHEN/$RECYCLE.*' \) -exec mv {} /volume1/Gesehen/ \;
# Löscht samples aus dem root.
#find /volume1/System/ -iname "*sample*" \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/System/$RECYCLE.*' \) -exec rm -r "{}" \;
#Löscht alle ordner ohne inhalt#
#find /volume1/Filesharing/!ALT_GESEHEN/* -type d \( ! -regex '.*/@eaDir/*.*' \) -size -2M -exec rm -rf "{}" \;

10
incleer.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# /usr/local/bin/ ordner
# L<>scht ind dateien..
find /volume1/TorrentInc/ -iname "*.torrent" -exec rm -r "{}" \;
find /volume1/TorrentInc/ -iname "*added" -exec rm -r "{}" \;
# rm -r /volume1/TorrentInc/*

31
m4b.sh Normal file
View File

@@ -0,0 +1,31 @@
#!/bin/sh
# for m4b in $(ls -1 *.m4b); do ffmpeg -i $m4b -acodec libmp3lame -ar 22050 ${m4b}.mp3; done
# find "/volume1/Filesharing/Ho/" -type f -iname '*.mp3' -exec ffmpeg -i $m4b -acodec libmp3lame -ar 22050 ${m4b}.mp3; done
#find "/volume1/Filesharing/Ho/" -iname '*.mp3' -print0 | xargs -0 -n1 for f in *.mp3; do ffmpeg -i "$f" -sameq "${f%.mp3}.m4a"; mv "${f%.mp3}.m4a" "${f%.mp3}.m4b";
#done;
#rm $f # Wenn du die Dateien noch entfernen willst..
# echo "Processing $f file..."
# for i in *mp3 ; do ffmpeg -i $i -sameq $i.m4a ; done
# for /F %i in *mp3 ; do ffmpeg -i $i -sameq $i.m4a ; done
#find -name "*.mp3" -exec ffmpeg -i $file -sameq ${file%%.*}.m4a \;
##############for f in *.mp3; do ffmpeg -i "$f" -sameq "${f%.mp3}.m4a"; mv "${f%.mp3}.m4a" "${f%.mp3}.m4b"; done;
find . -type f -name "*.mp3" -exec ffmpeg -i "$f" -sameq "${f%.mp3}.m4a" \;

2
mail Normal file
View File

@@ -0,0 +1,2 @@
cd /var/packages/MailServer/target/sbin
./postsuper -d ALL