diff backup-system @ 0:2d99d5730e7f

initial commit of backup scripts
author Robert McIntyre <rlm@mit.edu>
date Tue, 18 Oct 2011 21:16:24 -0700
parents
children d33008839340
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/backup-system	Tue Oct 18 21:16:24 2011 -0700
     1.3 @@ -0,0 +1,11 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +tar -vcpjf /backups/system-$(date +"%F-%H:%M").tar.bz2 \
     1.7 +--one-file-system \
     1.8 +--exclude=/proc/* \
     1.9 +--exclude=/sys/* \
    1.10 +--exclude=/dev/* \
    1.11 +--exclude=/tmp/* \
    1.12 +--exclude=/lost+found \
    1.13 +--exclude=/boot/lost+found \
    1.14 +-C / /boot /