doc:appunti:linux:sa:backup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:backup [2011/05/03 15:56] – niccolo | doc:appunti:linux:sa:backup [2013/09/03 12:46] (current) – [rdiff-backup] niccolo | ||
---|---|---|---|
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 94: | 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 148: | Line 150: | ||
===== backup-manager ===== | ===== backup-manager ===== | ||
- | Da usare in sostituzione di **'' | + | Da usare in sostituzione di **'' |
+ | |||
+ | **'' | ||
* Suddivide gli archivi in //slice// (file) di dimensione prefissata. | * Suddivide gli archivi in //slice// (file) di dimensione prefissata. | ||
Line 167: | Line 171: | ||
export BM_UPLOAD_METHOD=" | export BM_UPLOAD_METHOD=" | ||
export BM_UPLOAD_HOSTS=" | export BM_UPLOAD_HOSTS=" | ||
- | export BM_UPLOAD_DESTINATION="/ | + | export BM_UPLOAD_FTP_USER=" |
- | export BM_UPLOAD_FTP_USER=" | + | |
export BM_UPLOAD_FTP_PASSWORD=" | export BM_UPLOAD_FTP_PASSWORD=" | ||
export BM_UPLOAD_DESTINATION="/ | export BM_UPLOAD_DESTINATION="/ | ||
Line 174: | Line 177: | ||
Purtroppo non è possibile indicare la directory radice nell' | 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