PDA

Visualizza la versione completa : Cosa fa questo BASH shell script?


calias
05-05-2010, 19:47
Qualcuno sa spiegarmelo in dettaglio ?:


#!/bin/bash
SERVERIP=192.168.20.11
LOGFILE=/home/user/backup.log
rsync -avz --delete --numeric-ids \
--exclude=".Trash" \
--exclude="Downloads" \
$HOME $SERVERIP:backups/user/ 1>$LOGFILE

sacarde
05-05-2010, 22:16
sincronizza la home su un server di backup

escudendo delle dir elencate

coi parametri:

-a, --archive
-v, --verbose
-z, --compress
--delete This tells rsync to delete extraneous files from the receiving side
--numeric-ids With this option rsync will transfer numeric group and user IDs rather than
using user and group names and mapping them at both ends.

e loggando il tutto

Loading