msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

10 Apr 2007 rsync backup on a local pc

Posted by

#!/bin/bash
echo "Starting Daily rsync backup on `date`"

for FSYS in /home/username/rsync
do
  /usr/bin/rsync -aE --delete $FSYS /home/username/rsync_bck
  if [ $? != 0 ]; then
    echo " ==> Error during rsync of $FSYS"
  else
    echo "rsync of $FSYS OK on `date`"
  fi
done

echo "Finished Daily rsync backup at `date`"

Tags: ,

Comments are closed.