Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 15 su 15

Discussione: Rsync e NET-HDD

  1. #11
    Anzitutto ti conviene che tutte le operazioni siano riassunte in un singolo script di bash, poi metterai in crontab quello. Quindi # vi outbackup.sh

    codice:
    #!/bin/bash
    
    LOGFILE="/var/log/backup/outdisk.log"
    
    smbmount //outdisk/dati /mnt/mountpoint -o username=UTENTE,password=PASSWORD
    rsync --force --delete -avS /mount-da-backuppare /mount-di-backup >> $LOGFILE
    umount /mnt/mountpoint
    
    savelog $LOGFILE
    e poi in crontab
    MM HH * * * * /.../outbackup.sh

    e' utile inserire qualche controllo nello script, per capire se il disco e' montato correttamente etc.

    Ciao.
    Are you alive?
    No, but I was written with LOVE. A new scripting language.
    www.frequenze.it

  2. #12
    Utente di HTML.it L'avatar di emu86
    Registrato dal
    May 2005
    Messaggi
    324
    c'è un problema... mi da errore quando faccio il mount:
    could not mount /mnt/nethdd

  3. #13
    Mount e' laconico ma non cosi' tanto. Prova

    mount -v -t smbfs //outdisk/part /mnt/nethdd

    e riporta gli errori.
    Are you alive?
    No, but I was written with LOVE. A new scripting language.
    www.frequenze.it

  4. #14
    Utente di HTML.it L'avatar di emu86
    Registrato dal
    May 2005
    Messaggi
    324
    Questo è quanto mi stampa con il comando che mi avete dato:

    codice:
    Usage: mount -V                 : print version
           mount -h                 : print this help
           mount                    : list mounted filesystems
           mount -l                 : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
           mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
           mount device             : mount device at the known place
           mount directory          : mount known device here
           mount -t type dev dir    : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
           mount --bind olddir newdir
    or move a subtree:
           mount --move olddir newdir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using  -L label  or by uuid, using  -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say  man 8 mount .

    Ciao e grazie mille

  5. #15

    re:

    non capisco come fai a montare un disco collegato in rete se non ci gira un SO

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 © 2026 vBulletin Solutions, Inc. All rights reserved.