diff --git a/neu.sh b/neu.sh new file mode 100644 index 0000000..2b242da --- /dev/null +++ b/neu.sh @@ -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/ \; + + + + + + + + + + + + + + diff --git a/nohup.out b/nohup.out new file mode 100644 index 0000000..ecdf365 --- /dev/null +++ b/nohup.out @@ -0,0 +1,95 @@ +nohup: encode: No such file or directory +ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers + built on Aug 17 2013 12:46:22 with gcc 4.2.1 + configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc + libavutil 50. 40. 1 / 50. 40. 1 + libavcodec 52.120. 0 / 52.120. 0 + libavformat 52.108. 0 / 52.108. 0 + libavdevice 52. 4. 0 / 52. 4. 0 + libavfilter 1. 77. 0 / 1. 77. 0 + libswscale 0. 14. 0 / 0. 14. 0 +[mp3 @ 0x33fc0] max_analyze_duration reached +Input #0, mp3, from '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 001.mp3': + Metadata: + title : Die Giftköchin 001 + genre : Speech + track : 1 + Duration: 00:06:44.95, start: 0.000000, bitrate: 114 kb/s + Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s +Output #0, ipod, to '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 001.m4a': + Metadata: + title : Die Giftköchin 001 + genre : Speech + track : 1 + encoder : Lavf52.108.0 + Stream #0.0: Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s +Stream mapping: + Stream #0.0 -> #0.0 +Press [q] to stop encoding +size= 1kB time=0.19 bitrate= 43.8kbits/s size= 3kB time=0.49 bitrate= 58.4kbits/s size= 5kB time=0.70 bitrate= 61.9kbits/s size= 6kB time=0.84 bitrate= 63.0kbits/s size= 8kB time=0.98 bitrate= 63.3kbits/s size= 10kB time=1.23 bitrate= 64.1kbits/s size= 13kB time=1.60 bitrate= 65.1kbits/s size= 15kB time=1.95 bitrate= 65.0kbits/s size= 18kB time=2.32 bitrate= 64.7kbits/s size= 20kB time=2.55 bitrate= 64.3kbits/s size= 22kB time=2.79 bitrate= 64.2kbits/s size= 23kB time=2.95 bitrate= 63.9kbits/s size= 24kB time=3.07 bitrate= 63.8kbits/s size= 25kB time=3.27 bitrate= 63.4kbits/s size= 28kB time=3.60 bitrate= 63.7kbits/s size= 29kB time=3.76 bitrate= 63.6kbits/s size= 30kB time=3.90 bitrate= 63.7kbits/s size= 33kB time=4.25 bitrate= 63.9kbits/s size= 36kB time=4.53 bitrate= 64.3kbits/s nohup: encode: No such file or directory +ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers + built on Aug 17 2013 12:46:22 with gcc 4.2.1 + configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc + libavutil 50. 40. 1 / 50. 40. 1 + libavcodec 52.120. 0 / 52.120. 0 + libavformat 52.108. 0 / 52.108. 0 + libavdevice 52. 4. 0 / 52. 4. 0 + libavfilter 1. 77. 0 / 1. 77. 0 + libswscale 0. 14. 0 / 0. 14. 0 +[mp3 @ 0x33fc0] max_analyze_duration reached +Input #0, mp3, from '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 001.mp3': + Metadata: + title : Die Giftköchin 001 + genre : Speech + track : 1 + Duration: 00:06:44.95, start: 0.000000, bitrate: 114 kb/s + Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s +File '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 001.m4a' already exists. Overwrite ? [y/N] Not overwriting - exiting +ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers + built on Aug 17 2013 12:46:22 with gcc 4.2.1 + configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc + libavutil 50. 40. 1 / 50. 40. 1 + libavcodec 52.120. 0 / 52.120. 0 + libavformat 52.108. 0 / 52.108. 0 + libavdevice 52. 4. 0 / 52. 4. 0 + libavfilter 1. 77. 0 / 1. 77. 0 + libswscale 0. 14. 0 / 0. 14. 0 +[mp3 @ 0x33fc0] max_analyze_duration reached +[mp3 @ 0x33fc0] Estimating duration from bitrate, this may be inaccurate +Input #0, mp3, from '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 002.mp3': + Metadata: + title : Die Giftköchin 002 + genre : Speech + track : 2 + Duration: 00:06:07.32, start: 0.000000, bitrate: 128 kb/s + Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s +File '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 002.m4a' already exists. Overwrite ? [y/N] Not overwriting - exiting +ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers + built on Aug 17 2013 12:46:22 with gcc 4.2.1 + configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc + libavutil 50. 40. 1 / 50. 40. 1 + libavcodec 52.120. 0 / 52.120. 0 + libavformat 52.108. 0 / 52.108. 0 + libavdevice 52. 4. 0 / 52. 4. 0 + libavfilter 1. 77. 0 / 1. 77. 0 + libswscale 0. 14. 0 / 0. 14. 0 +[mp3 @ 0x33fc0] max_analyze_duration reached +[mp3 @ 0x33fc0] Estimating duration from bitrate, this may be inaccurate +Input #0, mp3, from '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 003.mp3': + Metadata: + title : Die Giftköchin 003 + genre : Speech + track : 3 + Duration: 00:06:01.44, start: 0.000000, bitrate: 128 kb/s + Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s +Output #0, ipod, to '/volume1/Filesharing/Ho/Arto Paasilinna - Die Giftkoechin/Die Giftköchin 003.m4a': + Metadata: + title : Die Giftköchin 003 + genre : Speech + track : 3 + encoder : Lavf52.108.0 + Stream #0.0: Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s +Stream mapping: + Stream #0.0 -> #0.0 +Press [q] to stop encoding +size= 1kB time=0.14 bitrate= 51.6kbits/s size= 2kB time=0.26 bitrate= 58.4kbits/s size= 3kB time=0.39 bitrate= 63.2kbits/s size= 6kB time=0.77 bitrate= 65.4kbits/s size= 9kB time=1.14 bitrate= 64.9kbits/s size= 11kB time=1.39 bitrate= 64.6kbits/s size= 14kB time=1.74 bitrate= 63.6kbits/s size= 15kB time=1.95 bitrate= 62.5kbits/s size= 17kB time=2.30 bitrate= 62.2kbits/s size= 21kB time=2.69 bitrate= 64.3kbits/s size= 24kB time=3.07 bitrate= 65.4kbits/s size= 28kB time=3.48 bitrate= 66.3kbits/s size= 30kB time=3.74 bitrate= 65.7kbits/s size= 31kB time=3.99 bitrate= 64.5kbits/s size= 32kB time=4.11 bitrate= 64.1kbits/s size= 33kB time=4.23 bitrate= 63.6kbits/s size= 34kB time=4.46 bitrate= 62.9kbits/s size= 36kB time=4.74 bitrate= 62.7kbits/s size= 38kB time=4.95 bitrate= 62.9kbits/s size= 40kB time=5.20 bitrate= 63.2kbits/s size= 42kB time=5.43 bitrate= 63.6kbits/s size= 44kB time=5.67 bitrate= 63.6kbits/s size= 48kB time=6.06 bitrate= 64.5kbits/s size= 51kB time=6.43 bitrate= 64.6kbits/s size= 54kB time=6.85 bitrate= 64.6kbits/s size= 57kB time=7.20 bitrate= 64.5kbits/s size= 58kB time=7.38 bitrate= 64.4kbits/s size= 59kB time=7.52 bitrate= 64.3kbits/s size= 60kB time=7.69 bitrate= 64.4kbits/s size= 62kB time=7.89 bitrate= 64.3kbits/s size= 64kB time=8.15 bitrate= 64.1kbits/s size= 65kB time=8.31 bitrate= 64.0kbits/s size= 66kB time=8.54 bitrate= 63.7kbits/s size= 69kB time=8.96 bitrate= 63.5kbits/s size= 72kB time=9.29 bitrate= 63.5kbits/s size= 75kB time=9.61 bitrate= 63.8kbits/s size= 78kB time=9.98 bitrate= 63.9kbits/s size= 80kB time=10.26 bitrate= 64.2kbits/s size= 82kB time=10.40 bitrate= 64.2kbits/s size= 84kB time=10.63 bitrate= 64.5kbits/s size= 85kB time=10.87 bitrate= 64.4kbits/s size= 87kB time=11.05 bitrate= 64.3kbits/s size= 89kB time=11.33 bitrate= 64.2kbits/s size= 92kB time=11.73 bitrate= 64.1kbits/s size= 94kB time=12.10 bitrate= 63.9kbits/s size= 96kB time=12.35 bitrate= 63.8kbits/s size= 99kB time=12.75 bitrate= 63.7kbits/s size= 102kB time=13.12 bitrate= 63.8kbits/s \ No newline at end of file diff --git a/porord1.sh b/porord1.sh new file mode 100644 index 0000000..ad1ef8a --- /dev/null +++ b/porord1.sh @@ -0,0 +1,36 @@ +#!/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" + +# Entpackt und löscht rar,s nach erfolgreichen entpacken. +# for RAR in `find /volume1/System/ \( -iname "*.rar" \) -type f \( ! -regex '/volume1/System/#recycle/.*' \) \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/System/$RECYCLE.*' \) ` ; do cd `dirname $RAR`; unrar x -kb -o- '$RAR' && rm *.r?? ; + +# Löscht auch rar,s die noch so umherfliegen ohne oben gelöscht zu werden (weil schon vorhandene film datei). +# find /volume1/System/ \( -iname "*.r??" \) -type f \( ! -regex '/volume1/Filesharing/#recycle/.*' \) -delete + +# Verschiebt alles in Por Root +find /volume1/System/* \( -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" -o -iname "*.rm" \) -type f \( ! -regex '/volume1/System/$RECYCLE.*' \) \( ! -regex '/volume1/System/!NEU/.*' \) \( ! -regex '/volume1/System/!OLD/.*' \) \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/System/$RECYCLE.*' \) -exec mv {} /volume1/System/ \; + +# 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/System/* -type d \( ! -regex '.*/@eaDir/*.*' \) \( ! -regex '/volume1/System/$RECYCLE.*' \) \( ! -regex '/volume1/System/!NEU.*' \) -size -2M -exec rm -rf "{}" \; + + + + + + + + + + + + diff --git a/porordEXT.sh b/porordEXT.sh new file mode 100644 index 0000000..687dc50 --- /dev/null +++ b/porordEXT.sh @@ -0,0 +1,25 @@ +#!/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" + +# Entpackt und löscht rar,s nach erfolgreichen entpacken. +# for RAR in `find /volumeUSB2/usbshare/ \( -iname "*.rar" \) -type f \( ! -regex '/volumeUSB2/usbshare/lost+found/.*' \)` ; do cd `dirname $RAR`; unrar x -kb -o- '$RAR' && rm *.r?? ; done >>/volume1/Backup/NAS_Scripte/LOG/$LOGFILE + +# L�scht auch rar,s die noch so umherfliegen ohne oben gel�scht zu werden (weil schon vorhandene film datei). +# find /volume1/System/ \( -iname "*.r??" \) -type f \( ! -regex '/volume1/Filesharing/#recycle/.*' \) -delete + +# 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 '/volumeUSB2/usbshare/lost+found/' \) \( ! -regex '/volumeUSB2/usbshare/@eaDir/' \) \( ! -regex '/volumeUSB2/usbshare/@tmp/' \) -exec mv {} /volumeUSB2/usbshare/ \; + +# L�scht samples aus dem root. +find /volumeUSB2/usbshare/ -iname "*sample*" -exec rm -r "{}" \; + +#L�scht alle ordner ohne inhalt +# find /volumeUSB2/usbshare/* -type d -size -3100k -exec rm -rf "{}" \; +#find /volumeUSB2/usbshare/* -type d -size -3100k -exec echo rm -rf "{}" \; diff --git a/porordF.sh b/porordF.sh new file mode 100644 index 0000000..735ef53 --- /dev/null +++ b/porordF.sh @@ -0,0 +1,41 @@ +#!/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" + +# Entpackt und löscht rar,s nach erfolgreichen entpacken. +# for RAR in `find /volume1/Filesharing/!!X!/ \( -iname "*.rar" \) -type f` ; do cd `dirname $RAR`; unrar x -kb -o- '$RAR' && rm *.r?? ; done +#for RAR in `find /volume1/Filesharing/!!X!/ \( -iname "*.rar" \) -type f \( ! -regex '/volume1/System/#recycle/.*' \)` ; do cd `dirname $RAR`; unrar x -kb -o- '$RAR' && rm *.r?? ; done >>/volume1/Backup/NAS_Scripte/LOG/$LOGFILE + +# Löscht auch rar,s die noch so umherfliegen ohne oben gelöscht zu werden (weil schon vorhandene film datei). +# find /volume1/System/ \( -iname "*.r??" \) -type f \( ! -regex '/volume1/Filesharing/#recycle/.*' \) -delete + +# Verschiebt alles in Por Root + + +find /volume1/Filesharing/!!X!/* \( -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 -exec mv {} /volume1/Filesharing/!!X!/ \; + +# Löscht samples aus dem root. +find /volume1/Filesharing/!!X!/ -iname "*sample*" -exec rm -r "{}" \; + +#Löscht alle ordner ohne inhalt +# find "/volume1/Filesharing/!!X!/*" -type d -size -3100k -exec echo rm -rf "{}" \; + + + + + + + + + + + + + +