Category Archive: NAS

EDIT: Prune backups made with Relax and Recover #rear #linux

People keep asking me how I make incremental backups with rear, so I edited my posting about pruning backups with rear and inserted my config.

Prune backups …

If you don’t want to look that up you find my /etc/rear/local.conf below.

BACKUP=NETFS
OUTPUT=ISO
CDROM_SIZE=20
BACKUP_URL=nfs://xxx.xxx.xxx.xxx/volume2/LinuxDR/rear
ISO_DIR=/mnt/ISO
ISO_PREFIX=”rear-$HOSTNAME”
BACKUP_PROG_EXCLUDE=( ‘/tmp/*’ ‘/dev/shm/*’ ‘/mnt/*’ ‘/media/*’ $VAR_DIR/output/\* )
BACKUP_SELINUX_DISABLE=1
BACKUP_TYPE=incremental
FULLBACKUPDAY=Fri

I also rsync my backups to an external (Raspberry Pi 1B) server, will post about that later on.

Have fun backing up!

Gimme some more Pi!

Ok, here it is, my brand new Raspberry Pi 2 Model B.
Specs:

A 900MHz quad-core ARM Cortex-A7 CPU
1GB RAM
Like the (Pi 1) Model B+, it also has:

4 USB ports
40 GPIO pins
Full HDMI port
Ethernet port
Combined 3.5mm audio jack and composite video
Camera interface (CSI)
Display interface (DSI)
Micro SD card slot
VideoCore IV 3D graphics core

When I start my project I’ll report. Probably I will test my download station on this one, and check out it’s performance. After that I will try some backup functions with plane rsync, or lftpd, and Bacula DR.

image

Rise and shine! (Aufwachen!)

I woke up this morning from my sat receiver. It was set at some French Jazz Radio station.
It’s been long since I heard this, but it caught my immediate attention.

I’m off to the shower, warm today I hope (it was cold yesterday .. aaargghhh!

(Actually I woke up the first time at 04:17. I forgot to set my iPhone silent, so it blew the whistle as something called “nachtrun” completed at work …. )

Automatic stream recording with VLC on Linux.

I wrote a tiny script to record my favorite hours of radio on Hit 103 (Tarragona, Spain). 4 Hours of commercial free 80’s / 90’s / 2000’s hits in one big remix, every Friday and Saturday evening.
The script is scheduled in Cron and the recordings go to my NAS so they are available on my network on every device in and around my house.

#!/bin/sh
NOW=$(date +%F_%k-%M)
INSTREAM=http://yp.shoutcast.com/sbin/tunein-station.pls?id=1467581
OUTFILE=smb://ls-wxl094/data/DLNA/Audio/Hit103/$NOW.mp3
cvlc -v --run-time=14400 $INSTREAM ':sout=#transcode{acodec=mp3,channels=2}:duplicate{dst=display,dst=std{access=file,mux=raw,dst="'$OUTFILE'"}}' vlc://quit ;

All you have to do is change the OUTFILE to the location of your choice (like /home/herman/$NOW.mp3 ), and schedule the script in Cron. For this particular radio program that should be every Friday and Saturday evening at 22:00 (10 PM) CET.

Happy listening!

Update: it has been running autonomously this weekend, flawless!