Software
NoderusArchiver - debian shell scripts
Watch, verifies and fixes archives or collections.
Download v.0.0.1-1_all-deb-package.
Quick setup: Usually, execute commands right in this order: watch -> verify -> fix [-> findDuplicates]. If files were added, use watch -> verify -> fix [-> findDuplicates]. If you want to verify & repair, use verify -> fix. WHAT IS A COLLECTION Files are sometimes used, modified, etc... but YOU want to be sure, that's why you checksum those files (if necessary, ignoring internal checksum mechanisms) WHAT IS AN ARCHIVE Files are not touched, only added ("Incoming"-directory in FTP is an exception, see TODO for possible feature "per-path settings"). Examples: In the following example the string "Tests/" is an existing directory to be checksummed, verified, fixed. For starters (folder has not been watched), begin at (1), else goto (2). (1) WATCH For a collection use: nsr-watchNecessary [-q] "Tests/" and respectivly for an archive nsr-watchAll [-q] "Tests/" This ensure each file has (if necessary) a proper md5 sum. I'd recommend to use -q, --quiet for the first time or redirect output to a file which can be analysed. (2) VERIFY To verify a collection use: nsr-verifyNecessary "Tests/" To verify an archive use: nsr-verifyAll "Tests/" When done, see LOGDIR for log files, where LOGDIR by default is /tmp/NoderusArchiver/nsr-.
(3) FIX
Use for a collection...
nsr-fixNecessary "Logs/"
...and for an archive
nsr-fixAll "Logs/"
to fix.
[
(4) FIND DUPLICATES
Use
nsr-findDuplicates "Logs/"
to find duplicates.
]
$ nsr-watchNecessary --help
Usage: /usr/bin/nsr-watchNecessary [-fwrqvh] path [space-separated list of extensions to filter].
-f, --followlinks follows symlinks,
-w, --writeprotect enables write protection,
-r, --reversefilter reverses filter,
-q, --quiet I'll be quiet,
-v, --version displays version,
-h, --help displays help.
* creates for each file file an external md5 (file.md5)
if not already exists.
* watchAll = archive mode (^=file data constant) ^= an external
checksum is generated even if file format supports internal
checksums.
* For archiving stuff, use watchAll. For everything else...
...there's watchNecessary.
$ nsr-verifyNecessary -h
Usage: /usr/bin/nsr-verifyNecessary [-firqvh] path [space-separated list of extensions to filter].
-f, --followlinks follows symlinks
-i, --incomplete skips checksum tests (fast),
-r, --reversefilter reverses filter,
-q, --quiet I'll be quiet,
-v, --version displays version,
-h, --help displays help.
* each file in directory is verified against its internal
(if format is supported) AND external checksum.
* verifyAll = archive mode (^=file data constant) ^= an external
checksum is required for complete verification.
* For archiving stuff, use verifyAll. For everything else...
...there's verifyNecessary.
$ nsr-fixNecessary -h
Usage: /usr/bin/nsr-fixNecessary [-farqvh] PATH [space-separated list of extensions to filter].
-f, --followlinks follows symlinks,
-a, --autoconfirm autoconfirms operations,
-r, --reversefilter reverses filter,
-v, --version displays version,
-h, --help displays help.
Fix repairs checksom errurs; requires lists written by
verify(All|Necessary)
* For archiving stuff, use fixAll. For everything else...
...there's fixNecessary.
What it does:
PATH is
* (filename.checksum-failed.list) updates checksums
* (filename.duplicate.list) deletes obsolete file.md5 if
file has internal checksum [USE ONLY IF DATA IS NON-ARCHIVE
e.g. when running verifyNecessary/watchNecessary instead of
verifyAll/watchAll
* (filename.references-missing.list) deletes obsolete
file.md5
* (filename.watchable.list) creates new checksum
* (filename) all of the above
What it does NOT:
PATH is
* (filename.verify-failed.list) repairs files/modifies internal
checksums. Instead - do it yourself with care (he's no magician).
Download v.0.0.1-1_all-deb-package.
Quick setup: Usually, execute commands right in this order: watch -> verify -> fix [-> findDuplicates]. If files were added, use watch -> verify -> fix [-> findDuplicates]. If you want to verify & repair, use verify -> fix. WHAT IS A COLLECTION Files are sometimes used, modified, etc... but YOU want to be sure, that's why you checksum those files (if necessary, ignoring internal checksum mechanisms) WHAT IS AN ARCHIVE Files are not touched, only added ("Incoming"-directory in FTP is an exception, see TODO for possible feature "per-path settings"). Examples: In the following example the string "Tests/" is an existing directory to be checksummed, verified, fixed. For starters (folder has not been watched), begin at (1), else goto (2). (1) WATCH For a collection use: nsr-watchNecessary [-q] "Tests/" and respectivly for an archive nsr-watchAll [-q] "Tests/" This ensure each file has (if necessary) a proper md5 sum. I'd recommend to use -q, --quiet for the first time or redirect output to a file which can be analysed. (2) VERIFY To verify a collection use: nsr-verifyNecessary "Tests/" To verify an archive use: nsr-verifyAll "Tests/" When done, see LOGDIR for log files, where LOGDIR by default is /tmp/NoderusArchiver/nsr-
Changelog:
0.0.1-1b (28.07-30.10.2011)
first release
+ internal checksum support:
-audio
ape
flac
wavpack
-video
*none atm*
-pictures
*none atm*
-archive
*none atm*
+ deb-Package
+ uses getopts_long for parsing arguments
+ statistics when done
+ follow symbolic links per default off. Even if activated, in current implementation endless loops may NOT occur.
+ Alpha version of "nsr-findDuplicates" included
NoderusMounter - debian shell scripts
Mounts truecrypt volumes and volumes available through system mount call.
Download v.0.0.1-1_all-deb-package.
Quick setup: * after installing deb-package: * create the main configuration file ~/.noderus/mount/default.conf (edit & copy example.conf to ~/.noderus/mount/default.conf) * [ create any other configuration files in ~/.noderus/mount/ ] * $PROFIT * mount default configuration file: $nsr-mount -a * mount other configuration file: $nsr-mount -a -f other * for unmount: same as mount: $nsr-unmount -a [...] $ nsr-mount --h Usage: /usr/bin/nsr-mount [-vhas] [-f configuration file]. -a, --all mounts all from configuration file, -s, --simulare simulates mount, -f, --file loads configuration file (default is ~/.noderus/mount/default.conf), -v, --version displays version, -h, --help displays help. * mounts devices from configuration file $ nsr-unmount --h Usage: /usr/bin/nsr-unmount [-vhas] [-f configuration file]. -a, --all unmounts all from configuration file, -s, --simulare simulates mount, -f, --file loads configuration file (default is ~/.noderus/mount/default.conf), -v, --version displays version, -h, --help displays help. * unmounts devices from configuration file
Download v.0.0.1-1_all-deb-package.
Quick setup: * after installing deb-package: * create the main configuration file ~/.noderus/mount/default.conf (edit & copy example.conf to ~/.noderus/mount/default.conf) * [ create any other configuration files in ~/.noderus/mount/ ] * $PROFIT * mount default configuration file: $nsr-mount -a * mount other configuration file: $nsr-mount -a -f other * for unmount: same as mount: $nsr-unmount -a [...] $ nsr-mount --h Usage: /usr/bin/nsr-mount [-vhas] [-f configuration file]. -a, --all mounts all from configuration file, -s, --simulare simulates mount, -f, --file loads configuration file (default is ~/.noderus/mount/default.conf), -v, --version displays version, -h, --help displays help. * mounts devices from configuration file $ nsr-unmount --h Usage: /usr/bin/nsr-unmount [-vhas] [-f configuration file]. -a, --all unmounts all from configuration file, -s, --simulare simulates mount, -f, --file loads configuration file (default is ~/.noderus/mount/default.conf), -v, --version displays version, -h, --help displays help. * unmounts devices from configuration file
Changelog:
0.0.1-1b (28.07-30.10.2011)
first release
+ controlled by mount configurations e.g. -f|--file
+ deb-Package
+ uses getopts_long for parsing arguments
+ multiple passwords supported
+ allows mounting of truecrypt volumes and normal volumes

