Linux

rsync backup on a local pc

#!/bin/bash echo “Starting Daily rsync backup on `date`” for FSYS in /home/username/rsync do /usr/bin/rsync -aE –delete $FSYS /home/username/rsync_bck if [ $? != 0 ]; then echo ” ==> Error during rsync of $FSYS” else echo “rsync of $FSYS OK on `date`” fi done echo “Finished Daily rsync backup at `date`”

Read More
Security

md5sum av filer/bilder

For å sikre seg mot at filer er korrupt kan man benytte kommandoen md5sum Windows md5sum -b *.JPG > checksum.md5 Linux Deretter kopierer man denne md5-fila til rett katalog i Linux og tester at disse filene er identisk vha MD5Sums, et grafisk Windows program.

Read More
Linux

Create a Courier-imap shared Spam folder

My aim is to ask procmail to deliver everyone’s spam emails into “shared.System.Spam” IMAP folder. All my mail-receiving users belong to a unix group called “users“. I need to create the shared maildir first. I put all my shared folders under “/var/spool/Maildir“, so first I will create a “System” sharable maildir, and then create a […]

Read More