Skip to content

Delete directories recursive on Hetzner Storage Box

Among other external solutions, I store some data on Storage Boxes from Hetzner. The Storage Box allows you to have sub-accounts, so for every server and system storing data there, I use a separate account. For each sub-account, one can select a subdirectory where the data is stored, and the sub-account then can only see this data. The Admin account can see all data, and see all directories.

The usual way I access the Storage Box from other systems is by using sftp protocol from ssh (don't confuse this with the "other" sftp). That's all good, until I remove a sub-account and want to delete the subdirectory with the data. The server doesn't know "rm -r" for recursive deletion, which means I have to traverse into every directory, delete all files, then delete the empty directories. And the encrypted backup I'm using is creating plenty of subdirectories.

Or I find a better tool.

 

Continue reading "Delete directories recursive on Hetzner Storage Box"

Start multiple ssh sessions with KDE konsole

I have shell accounts on different servers. Sometimes - especially if new Debian/Ubuntu/Redhat/Fedora updates are available - i have to open a ssh session to each server. That takes time and too much keyboard clicks and being a lazy admin i thought this job can be scripted.

Last year i switched from my long-time favourite windowmanager fvwm2 to KDE. Given the fact that most of my work is still done using a terminal i decided to give "konsole" a chance and found that this tool has some nice advantages compared to the simple xterm which i used before. One lovely feature is the tabbing functionality, another one the integrated scripting which can be used with "dcop" (Desktop Communication Protocol).

Continue reading "Start multiple ssh sessions with KDE konsole"