doc:appunti:linux:sa:backup
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:linux:sa:backup [2008/11/11 23:05] – external edit 127.0.0.1 | doc:appunti:linux:sa:backup [2013/09/03 12:46] – [rdiff-backup] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Strategie di backup | + | ====== Strategie di backup ====== |
===== Tabella comparativa ===== | ===== Tabella comparativa ===== | ||
Line 13: | Line 13: | ||
===== rdiff-backup ===== | ===== rdiff-backup ===== | ||
+ | |||
+ | FIXME **ATTENZIONE!** Pare che rdiff-backup soffra di un [[wpit> | ||
Si installa il pacchetto Debian **rdiff-backup**. Un primo script di backup di una **directory** verso un **host remoto** potrebbe essere questo: | Si installa il pacchetto Debian **rdiff-backup**. Un primo script di backup di una **directory** verso un **host remoto** potrebbe essere questo: | ||
Line 89: | Line 91: | ||
restore > quit | restore > quit | ||
</ | </ | ||
- | |||
- | |||
- | |||
- | |||
===== Baubackup ===== | ===== Baubackup ===== | ||
Line 98: | Line 96: | ||
The program is writter in Perl and you can download it here: **{{baubackup.tar.gz}}**. | The program is writter in Perl and you can download it here: **{{baubackup.tar.gz}}**. | ||
- | Based on the same principle of **[[http:// | + | Based on the same principle of **[[http:// |
This program will address the major problem of FauBackup: **speed**. Faubackup first of all make a full copy of every file, then it removes unchanged ones making hard links. This is undesiderable for remote backups. | This program will address the major problem of FauBackup: **speed**. Faubackup first of all make a full copy of every file, then it removes unchanged ones making hard links. This is undesiderable for remote backups. | ||
Line 149: | Line 147: | ||
If you want some files to be excluded from the backup, create a file called **'' | If you want some files to be excluded from the backup, create a file called **'' | ||
+ | |||
+ | ===== backup-manager ===== | ||
+ | |||
+ | Da usare in sostituzione di **'' | ||
+ | |||
+ | **'' | ||
+ | |||
+ | * Suddivide gli archivi in //slice// (file) di dimensione prefissata. | ||
+ | * È in grado di accedere rapidamente ad un file all' | ||
+ | * Può creare archivi differenziali e incrementali, | ||
+ | |||
+ | Per ogni task di backup si può creare un file di configurazione del tipo **''/ | ||
+ | |||
+ | < | ||
+ | export BM_REPOSITORY_ROOT="/ | ||
+ | |||
+ | export BM_ARCHIVE_METHOD=" | ||
+ | export BM_TARBALL_FILETYPE=" | ||
+ | |||
+ | BM_TARBALL_TARGETS[0]="/ | ||
+ | export BM_TARBALL_BLACKLIST="/ | ||
+ | |||
+ | export BM_UPLOAD_METHOD=" | ||
+ | export BM_UPLOAD_HOSTS=" | ||
+ | export BM_UPLOAD_FTP_USER=" | ||
+ | export BM_UPLOAD_FTP_PASSWORD=" | ||
+ | export BM_UPLOAD_DESTINATION="/ | ||
+ | </ | ||
+ | |||
+ | Purtroppo non è possibile indicare la directory radice nell' | ||
+ | |||
+ | Purtroppo viene creato un archivio per ogni '' | ||
+ | |||
+ | Per vedere il contenuto di un archivio '' | ||
+ | |||
+ | < | ||
+ | dar -l paros-home.20110428.master | ||
+ | </ | ||
+ | |||
+ | Per estrarre **tutto** il contenuto di un archivio '' | ||
+ | |||
+ | < | ||
+ | dar -x / | ||
+ | </ | ||
+ | |||
+ | Per estrarre una **directory** oppure un **file** da un archivio '' | ||
+ | |||
+ | < | ||
+ | dar -x / | ||
+ | dar -x / | ||
+ | </ | ||
+ | |||
+ | ===== rsync su MS-Windows ===== | ||
+ | |||
+ | Vedere la soluzione basata su **[[https:// | ||
+ | |||
+ | Per abbinare rsync ad una connessione sicura si può usare il **software non libero** (ma gratuito) [[http:// | ||
+ | |||
+ | Rimane il problema di fare il backup dei locked files, le versioni di Windows da XP e 2003 offrono il servizio di **Volume Shadow Copy Service (VSS)** che dovrebbe risolvere il problema, ma è necessario che il software rsync sia compatibile con VSS. | ||
+ | |||
+ | Dovrebbe essere possibile usare [[http:// | ||
+ | |||
+ | In alternativa - a giudicare da questo [[http:// | ||
+ | |||
+ | ==== Winexe ==== | ||
+ | |||
+ | Esisten un pacchetto **wmi-client** [[http:// | ||
+ | |||
+ | In alternativa dal sito [[http:// | ||
+ | |||
+ | Ecco un esempio di come eseguire Notepad su Windows remoto, aprendo un file condiviso su network share: | ||
+ | |||
+ | < | ||
+ | winexe --interactive=1 --system \ | ||
+ | --user=Administrator%administrator // | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | Il comando funziona copiando e lanciando un eseguibile (**'' | ||
+ | |||
+ | Se il comando dovesse fallire con il messaggio di errore | ||
+ | |||
+ | < | ||
+ | ERROR: Failed to install service winexesvc - NT_STATUS_IMAGE_ALREADY_LOADED | ||
+ | </ | ||
+ | |||
+ | verificare se il parametro **'' | ||
+ | |||
+ | ==== Account Administrator e Windows 7 ==== | ||
+ | |||
+ | Pare che non sia possibile eseguire un processo **'' | ||
+ | |||
+ | Ad ogni modo, per eseguire il programma senza privilegi di amministratore (con Windows 7 l' | ||
+ | |||
+ | Per abilitare l' | ||
+ | ==== VSS ==== | ||
+ | |||
+ | Segue una descrizione dei pregi e difetti di VSS (tratta dal sito di [[http:// | ||
+ | |||
+ | //As we have already mentioned, this service allows backup of locked files, but both the back-up program and the program that locked the file must be VSS-compliant. This means that the application (e.g. the database application) whose files we want to back up must be dedicated for the Windows XP/2003 platform and use shadow copy mechanisms.// | ||
+ | |||
+ | //Another VSS limitation is that the backup application, | ||
+ | |||
+ | //Another inconvenience is that volume shadow copying requires adequate free disc space. This space is used to make volume snapshots. If there’s not enough free space on the disc, then backup of locked files will not be possible, either.// | ||
+ | |||
+ | * //The service is only available in Windows XP and Windows Server 2003// | ||
+ | * //The backup software and business software must be VSS-compliant// | ||
+ | * //The backup software, business software and the locked file must be on the same computer./// | ||
+ | * // | ||
doc/appunti/linux/sa/backup.txt · Last modified: 2013/09/03 12:46 by niccolo