simple script to make snapshot backups  

#!/bin/bash
#
# Remote location
HOST=localhost.localdomain

# local directory where to store
PATHTOBACKUP=backup

# Timestamp is useful :-)
date=`date "+%Y-%m-%dT%H:%M:%S"`

# Just rsync notice the stdout will go to syslog
rsync -av $HOST:/home/ $PATHTOBACKUP/back-$date


Of course you need rsa keys and ssh properly configured :-)

Comments

Add Comment

Fill out the form below to add your own comments.









Insert Special:


View Uploaded Images