#!/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 :-)
#
# 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 :-)


Calendar



