... a walk through the internet world ...

Tag script

wp-cli: a simple shell script

iptables: remove duplicate rules

Potrebbe capitare che le regole che gestite con iptables possano diventare improvvisamente centinaia. Alcune di queste però, potrebbe essere dei semplici duplicati. Lo strumento che corre in aiuto in maniera efficace è certamente awk. Inserito in uno script diventa super…. Continua a leggere →

Backup: simple rsync bash script

With the following script you can backup entire system or one directory. The script provides incremental backup and a log file for each backup session. #!/bin/bash date=`date “+%Y-%m-%dT%H_%M_%S”` # Setup Directory Variables BACKUPHOME=/home/backup DIR2BCK=/etc # Rsync All Data in local… Continua a leggere →

© 2024 Crumbs of Knowledge — Powered by WordPress

Tema di Anders NorenTorna su ↑