Dateien nach "/" hochladen
This commit is contained in:
35
gesehen.sh
Normal file
35
gesehen.sh
Normal 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 "{}" \;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user