Archivio

Posts Tagged ‘rsync’

Script con Rsync – backup

22 Dicembre 2011 Nessun commento
1 Star2 Stars3 Stars4 Stars5 Stars (Ancora nessun voto)
Loading...

Vi lascio uno script di backup che utilizza Rsync:

#!/bin/bash
#######################
# rsync of Guion Matteo
#######################

cartella=`date +%e-%m-%y`

echo "@@@@@@@@@@"
echo "---> copy to: /home/web/$cartella"
echo "@@@@@@@@@@"

#create folder of backup

mkdir -p "/home/web/$cartella/"

#pause
echo "Per continuare premi invio"
read

#script
rsync --compress --progress --recursive root@192.168.100.1:/home2/salvi/logici/ /home/web/"$cartella"

#fine
echo "@@@@@@@@@@"
echo "Ultimate backup"
Categorie:Informatica, Linux Tag: ,