Personal data backup: tar o cpio + gzip - Programming On Unix

Users browsing this thread: 1 Guest(s)
z3bra
Grey Hair Nixers
I wrote about my backup method on my blog: http://blog.z3bra.org/2014/09/backup-someone.html

TL;DR
  • cpio | bzip2
  • Rotate backups
  • wrap it in a script
  • fire it up via cron
  • export it via rsync (I still need to find somewhere to put my backups)

I even get some fancy mails like this afterwards:
Code:
From: backup@localhost
To: z3bra@localhost
Date: Wed, 17 Jun 2015 03:43:31 +0200 (CEST)
Subject: [BACKUP][20150617] - /var/backup/out/production

BACKUP FINISHED
===============
name    : production
start   : Wed Jun 17 02:00:01 CEST 2015
stop    : Wed Jun 17 03:42:47 CEST 2015
outdir  : /var/backup/out is a mountpoint
outfile : /var/backup/out/production (production.5.BAK)
size    : 1.3G

ROTATION STATE
==============
/var/backup/out/production.0.BAK
/var/backup/out/production.1.BAK
/var/backup/out/production.2.BAK
/var/backup/out/production.3.BAK
/var/backup/out/production.4.BAK
/var/backup/out/production.5.BAK

DISK USAGE
==========
Filesystem                Size      Used Available Use% Mounted on
/dev/sdc1               931.0G    626.0G    305.0G  67% /var/backup/out

BACKUP LOGS
===========

bzip2: I/O or other error, bailing out.  Possible reason follows.

bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: No space left on device
        Input file = (stdin), output file = (stdout)
bzip2: No space left on device
        Input file = (stdin), output file = (stdout)
[2015-06-15 04:30][ERROR] - archiving failed: /var/www /var/git /etc
[2015-06-15 04:30][ERROR] - archiving failed: /data
[2015-06-15 04:34][MESSAGE] - File created - production.5.BAK
[2015-06-15 09:00][MESSAGE] - File created - data.1.BAK
[2015-06-16 03:15][MESSAGE] - archived: /var/www /var/git /etc
[2015-06-16 03:25][MESSAGE] - File created - production.5.BAK
[2015-06-17 03:31][MESSAGE] - archived: /var/www /var/git /etc
[2015-06-17 03:42][MESSAGE] - File created - production.5.BAK

--
Cheers.


Messages In This Thread
Personal data backup: tar o cpio + gzip - by p3p1 - 17-06-2015, 06:08 AM
RE: Personal data backup: tar o cpio + gzip - by z3bra - 17-06-2015, 01:57 PM