Dateien nach "/" hochladen
This commit is contained in:
29
neu.sh
Normal file
29
neu.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/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="log-$NOW.log"
|
||||
|
||||
|
||||
|
||||
|
||||
# Verschiebt alles in Por Root
|
||||
find /volumeUSB2/usbshare/* \( -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/System/#recycle/.*' \) \( ! -regex '/volume1/System/!NEU/.*' \) \( ! -regex '/volume1/System/!OLD/.*' \) -exec mv {} /volumeUSB2/usbshare/ \;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user