Scripting

Rotate and rename images according to their EXIF info

This is my short script to rotate and rename image files accoring to date captured based on their EXIF info. You need jhead and exiv2 to run this. These two programs are also available in Windows and only require you to make small changes to work there as well. #!/bin/bash -x echo Rotating JPEG file(s) […]

Read More
Backup

Using rsnapshot as backup solution

This post describes short how to use rsnapshot as a remote filesystem snapshot utility, based on rsync that I use as my personal backup tool. I have started using rsnapshot after using rsync and rdiff-backup and lost files because of file corruption. rsnapshot is a great backup utility because it hardlinks files if they already […]

Read More
Virtualization

VMware Tools one-liners using PowerCli

This short post is about VMware Tools on VM guests running in a vSphere 5.x cluster/hosts. This PowerCli one-liner creates a list of VM guests where the VMware Tools CDROM/ISO is mounted: (Get-VM | Get-View | Where {$_.Runtime.ToolsInstallerMounted}) | % {$_.Name} Unmount the VMware Tools installer CDROM on all VM guests. This is useful to […]

Read More
Scripting

Backup of Zimbra MailBox using zmmailbox

This is a short script I use to backup the Zimbra mailbox content for my users. This has been used on a Zimbra Collaboration Server (ZCS Open Source Edition) 7.2 installation, but should work on earlier versions as well. I use another script to backup the whole Zimbra installation, but that might be another blog […]

Read More
Windows

Rename AVCHD files using Exiftools

Simple bash script to rename AVCHD/MTS/MOV files to match their recording date and time. #!/bin/bash if [ -z “$1” ]; then echo “Usage: ./rename_video.sh FILETYPE” 1>&2 echo “Example: ./rename_video.sh *.MTS” 1>&2 exit 1 fi for x in “$@” do exiftool ‘-FileName<DateTimeOriginal’ -d %Y%m%d_%H%M_%%f.%%e “$x” done The resulting files will be named like YYYYMMDD_HHMM_BASENAME.ext ie 20120703_1635_05600.MTS […]

Read More