<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>servers on Rise-</title><link>https://madil.in/tag/servers/</link><description>Recent content in servers on Rise-</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 12 Nov 2022 08:30:23 +0000</lastBuildDate><atom:link href="https://madil.in/tag/servers/index.xml" rel="self" type="application/rss+xml"/><item><title>TIL - Tracing Syscalls using Aquasec Tracee</title><link>https://madil.in/til-tracing-syscalls-using-aquasec-tracee/</link><pubDate>Sat, 12 Nov 2022 08:30:23 +0000</pubDate><guid>https://madil.in/til-tracing-syscalls-using-aquasec-tracee/</guid><description>&lt;p&gt;To check all the syscalls made from a container use the Tracee tool developed by Aqua Security.&lt;/p&gt;&#10;&lt;p&gt;Below docker run command will trace all the new syscalls made from new containers.&lt;/p&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;docker run --name tracee --rm --privileged \&#10; -v /lib/modules/:/lib/modules/:ro \&#10; -v /usr/src:/usr/src:ro -v /tmp/tracee:/tmp/tracee -it \&#10; aquasec/tracee:0.4.0 --trace container=new&lt;/code&gt;&lt;/pre&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;text&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;a class="bookmark-card" href="https://github.com/aquasecurity/tracee" target="_blank" rel="noopener"&gt;&#10; &lt;span class="bookmark-content"&gt;&#10; &lt;span class="bookmark-title"&gt;GitHub - aquasecurity/tracee: Linux Runtime Security and Forensics using eBPF&lt;/span&gt;&lt;span class="bookmark-description"&gt;Linux Runtime Security and Forensics using eBPF. Contribute to aquasecurity/tracee development by creating an account on GitHub.&lt;/span&gt;&#10; &lt;span class="bookmark-meta"&gt;&lt;img class="bookmark-icon" src="https://github.com/fluidicon.png" alt="" loading="lazy"&gt;&lt;span&gt;aquasecurity&lt;/span&gt;&#10; &lt;/span&gt;&#10; &lt;/span&gt;&lt;span class="bookmark-thumb"&gt;&lt;img src="https://opengraph.githubassets.com/6f23fbe07e784db031aa7b211bfe511094104455d02cf4dc8adf6b8ff83f3508/aquasecurity/tracee" alt="" loading="lazy"&gt;&lt;/span&gt;&lt;/a&gt;</description></item><item><title>TIL - How to remove older backups from disk to save space</title><link>https://madil.in/til-how-to-remove-older-backups-from-disk-to-save-space/</link><pubDate>Sat, 01 Oct 2022 18:00:09 +0000</pubDate><guid>https://madil.in/til-how-to-remove-older-backups-from-disk-to-save-space/</guid><description>&lt;p&gt;We keep database backups of a local monitoring system which grows twice in size every 2 months. Therefore, removing older backups is sometimes missed resulting in a shortage of disk space.&lt;/p&gt;&#10;&lt;p&gt;We keep the most recent files in a directory with the following shell script -&lt;/p&gt;&#10;&lt;div class="code-block not-prose group relative my-7" x-data="copy(function () { return this.$root.querySelector('pre').innerText })"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#abb2bf;background-color:#282c34;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#7f848e"&gt;#!/bin/bash&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;/bin/ls -t /data/backups/*.sql.gz | tail +14 | xargs rm&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="absolute right-2 top-2 flex items-center gap-2"&gt;&lt;span class="select-none text-xs uppercase tracking-wider text-white/40 transition-opacity group-hover:opacity-0"&gt;bash&lt;/span&gt;&#10; &lt;button type="button" @click="copy()" data-track="code_copied" data-track-props='{&amp;#34;language&amp;#34;:&amp;#34;bash&amp;#34;}' class="absolute right-0 flex items-center gap-1 rounded-md bg-white/10 px-2 py-1 text-xs text-white/80 opacity-0 transition-opacity hover:bg-white/20 focus:opacity-100 group-hover:opacity-100"&gt;&#10; &lt;span x-text="copied ? 'Copied' : 'Copy'"&gt;Copy&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>TIL - Securing Virtual Private Servers with Tailscale</title><link>https://madil.in/til-securing-virutal-private-servers-with-tailscale/</link><pubDate>Sun, 10 Apr 2022 08:31:23 +0000</pubDate><guid>https://madil.in/til-securing-virutal-private-servers-with-tailscale/</guid><description>Secure your servers with a zero-config VPN solution from Tailscale.</description></item></channel></rss>