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
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
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