So, For English instructions please scroll down weil es praktisch unmöglich ist, gezielt Dateien in Gruppen, ohne einen Zeitaufwand von mehreren Stunden zu investieren, zu löschen und somit Speicher zu schaffen, habe ich ein kurzes Skript in Python geschrieben. Hier wird zuerst eine Liste von den Dateien im eigenen Verzeichnis erstellt und dann im angegeben Gruppenverzeichnis jede Datei mit den Dateien in der Liste verglichen und über Vergleich von Größe und Erstellungszeit herausgefiltert, ob ein File in sich in einer Gruppe befindet (egal, ob umbenannt). Ausgegeben wird der vollständige Pfad, des gefundenen Duplikats. Benötigt wird der "python-Interpreter":http://python.org/download/ (getestet mit 2.6 unter Linux) sowie eine aktive Filesystemintegration. Benutzung: # "Herunterladen des Skripts":http://www.wuala.com/posativ/Python/Wuala/FindMyFilesInGroups_1.1.py # Mit einem beliebigen Texteditor öffnen und folgende Variablen zu Beginn editieren: @HOME = '/home/unix/wuala/direct/myfiles/Ordner'@ @GROUPDIR = '/home/unix/wuala/direct/mygroups/Gruppe'@ Windows User müssen den Buchstaben des Netzlaufwerks angeben sowie den Pfad mit Slashes, *nicht* Backslashes schreiben! # Skript ausführen, z.b. bash$ python "pfad/zur/datei.py" #(ohne Anführungszeichen...) # Warten Anmerkung: * Man kann anstelle der Gruppe auch einen Unterordner angeben, um die Suchgeschwindigkeit zu erhöhen. * wem die Fortschrittsanzeige stört, schreibt in Zeile 31 ein Hash # vor progress. * die beste Performance kann nur die FSI unter Windows liefern, da dort weniger Timeouts und generell eine höhere Geschwindigkeit zu verzeichnen ist. * Linux-User sollten folgende Paramter für das NFS-Laufwerk nutzen: @nfs defaults,users,noauto,rsize=8192,wsize=8192,timeo=60,acregmin=10,noac,intr,nolock,soft @um vorschnelle Timeouts zu vermeiden * Es benötigt, aufgrund der schlechten Performance der FSI, sehr lange. (Unter Linux schafft die FSI ca. 100 Einträge alle 2-3 Sekunden) * Verwendung auf eigene Gefahr History: * 1.1: - Steigerung der Performance durch das Zwischenspeichern der "Eigene Dateien"-Attribute und des aktuell durchsuchten Eintrags. Bug und Wünsche und Kritik bitte in die Kommentare oder per Mail. In der Hoffnung, dass es jemanden etwas bringt. *Find My Files in Groups - Script* It is nearly impossible to search directly your files ('My Files') in a specific groups, without wasting a lot of time to search in every single folder if there is one of your files. But when you need space and try to delete simply the file in "My Files" it will not deleted (and give you space free) when the file is linked to a group. So to find your files in a group I have written a little python script. It scans (recursivly) a group/folder and compares every item with every file in "My Files" scanned previously via creation time and size comparison. The Result is a complete (FSI)-path to the group. You'll need a "python interpreter":http://python.org/download/ (tested with 2.6 on Linux) as well as an active filesystemintegration (FSI). Usage: # "Download the script":http://www.wuala.com/posativ/Python/Wuala/FindMyFilesInGroups_1.1.py # Open the file with your favourite texteditor and edit the following variables: @HOME = '/home/unix/wuala/direct/myfiles/Folder'@ @GROUPDIR = '/home/unix/wuala/direct/mygroups/Group'@ Windows user have to use the specific network drive letter as well as a path with slashes. *no* backslashes! # Run the script, e.g. bash$ python "path/to/file.py" (without quotation marks) # Wait Notes: * Instead of choose root directory you can specify any folder to improve the search speed. * If you dislike the progress lines simply uncomment the 31th line with a hash # for progress. * Ihe windows FSI is the fastest integration and has less timeouts and a general higher performance * Linux users should use the following parameters for their NFS drive: @nfs defaults,users,noauto,rsize=8192,wsize=8192,timeo=60,acregmin=10,noac,intr,nolock,soft @to increase the time before a timeout occur * Zhe script is actually really slow cause of the slow FSI. (NFS under Linux has a speed of 100 Items per 2-3 seconds) * Use at your own risk! History: * 1.1: - Increasing performance by caching 'MyFiles'-attributes and the current file's attributes Bugs and wishes please via comment or email. ~Last updated: 26.05.2009~