From e7c7ea905957af2db71e666d25c6efaddc40d85c Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sat, 6 Aug 2011 17:08:39 +0200 Subject: [PATCH] Minimal script to do local backup (rsync) --- bin/lbackup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/lbackup.sh diff --git a/bin/lbackup.sh b/bin/lbackup.sh new file mode 100644 index 0000000..ba17839 --- /dev/null +++ b/bin/lbackup.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +HOSTNAME=`hostname` +START=`date` +echo "Starting backup of ${HOSTNAME}" + + +rsync -avh --exclude "/share/" --exclude "/mnt/" --exclude "/proc/" --exclude "/media/" --exclude "/sys" --exclude "/dev" / /media/43c1174c-83d4-4238-a51e-9ee6a517c228/backup/${HOSTNAME} + +END=`date` + +echo "Backup started at ${START} and ended at ${END} for ${HOSTNAME}">>/media/43c1174c-83d4-4238-a51e-9ee6a517c228/backup/${HOSTNAME}.log +