Mercurial > backup
changeset 0:2d99d5730e7f
initial commit of backup scripts
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 18 Oct 2011 21:16:24 -0700 |
parents | |
children | bc9176d863ba |
files | backup-home backup-system cd-backup |
diffstat | 3 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/backup-home Tue Oct 18 21:16:24 2011 -0700 1.3 @@ -0,0 +1,7 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +tar -vcpjf /backups/home-$(date +"%F-%H:%M").tar.bz2 \ 1.7 +--one-file-system \ 1.8 +-C /home \ 1.9 +--exclude=./lost+found \ 1.10 +.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/backup-system Tue Oct 18 21:16:24 2011 -0700 2.3 @@ -0,0 +1,11 @@ 2.4 +#!/bin/sh 2.5 + 2.6 +tar -vcpjf /backups/system-$(date +"%F-%H:%M").tar.bz2 \ 2.7 +--one-file-system \ 2.8 +--exclude=/proc/* \ 2.9 +--exclude=/sys/* \ 2.10 +--exclude=/dev/* \ 2.11 +--exclude=/tmp/* \ 2.12 +--exclude=/lost+found \ 2.13 +--exclude=/boot/lost+found \ 2.14 +-C / /boot /