bookmarks
-
End-to-End encryption in Jitsi
-
Image Classification with Tensorflow
-
Corona-Kurven im Vergleich
-
Writing man pages
The old way: https://liw.fi/manpages/
With asciidoc: https://asciidoctor.org/docs/user-manual/#man-pages
-
UI-Widgets – Options for ‚more options‘
Don't ever say you don't have choices on mobile. pic.twitter.com/Atu3Ogi58j
— Luke Wroblewski (@LukeW) April 23, 2015
-
Unix tools introduced. Today: rsync
rsync is a very cool tool that can be used to copy files between hosts or between directories on the same host. Like the term ’sync‘ suggests the copy process can be controlled into great detail to modulate rsync’s behavior. Take a look at the available options under: https://linux.die.net/man/1/rsync
This is my list of cool options. I start with the most basic usage. The following command can be used to copy, and later on sync two directories.
rsync -avn /source/dir /target/dirThe command ‚archives‘ file attributes (
-a) and displays some status info (-v).In the given form, the command only does a dry-run (
-n). To execute the command remove the-n.The command uses the short form of
--archive(-a) which translates to (-rlptgoD).-r– recursive copy-l– copy symlinks as symlinks-p– set target permissions to be the same as the source-t– set target mtime to be the same as the source. Use this to support fast incremental updates based on mtime.-g– set target group to be the same as the source-o– set target owner to be the same as the source-D– if remote user is superuser this recreates devices and other special files.
More cool options
Move
--remove-source-filesThis will remove copied files from source.Update
--updateThis forces rsync to skip any files which exist on the destination and have a modified time that is newer than the source file.Delete
--deleteDelete files on target that do not exist in source tree.Backup
--backupMake a backup of modified or removed files on target.--backup-dir=date +%Y.%m.%dSpecify a backup dir on target.What to copy?
--min-size=1Do not copy empty files. This can be particularly interesting if you have corrupted files in the source.--max-size=100KCopy only small files. Can be used to handle small and large files differently.--existingOnly override files that already exist on the target. Do not create new files on target.--ignore-existingOnly copy files that do not exist on target.--exclude-fromDefine excludes in a file.Scheduling, Bandwidth and Performance
--time-limitEnds rsync after a certain time limit.--stop-at=y-m-dTh:mEnds rsync at a specific time.--partialAllows partial copies in case of interruptions.--bwlimit=100Limits bandwidth Specify KBytes/second. Good option if transfer of large files is required.Output
-houtput numbers in a human-readable format.--progressdisplay progress.-ilog change info.--log-file=define a log file.--quietno output.- -v Output status info. You can add more ‚v‘.
- Forgot to log any progress info? Use the following command to see what rsync is about to do.
ls -l /proc/$(pidof rsync)/fd/*
-
Java Features
-
Performance is a Feature
-
Top Ten Web Hacking Techniques of 2019
-
Der Ethikrat zur Corona Krise