Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2000
    Messaggi
    257

    Cosa fa questo BASH shell script?

    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

  2. #2
    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

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.