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 "{}" \;