Backups

Bash Date Usage For Naming

I am recording some scripting I used to create backup classification/retention naming. It can be simplified into one function easily but I kept it like this so I can copy and paste easier which function I need. Script is pretty self explanatory but basically it takes today’s date and name…

Using Unix TAR for data moves

I haven’t tried this yet in a real world example. In some instances you might be moving large amounts of data and network is not an option (speed), you might have incompatible file systems so you can’t just re-use disk (LUN), and more traditional backup devices like tapes are not…

Bacula Cheatsheet

Just a few useful commands. Note that bconsole commands can be scripted by echoing commands through a pipe to bconsole.  This is very helpful as you can see. Check bacula job progress: root@bcla001:~# echo “status client=dracula-fd” | bconsole | grep -i file Files=31,011 Bytes=507,017,314,659 Bytes/sec=13,158,002 Errors=0 Files Examined=31,011 Processing file:…

Bacula Relabel Tape

Some notes on what I did to erase a tape in Bacula. unmount using bconsole *unmount The defined Storage resources are: 1: File 2: Scalar Select Storage resource (1-2): 2 3307 Issuing autochanger “unload slot 2, drive 0” command. 3001 Device “”Drive-1″ (/dev/nst0)” unmounted. I used the library web front-end…