User Tools

Site Tools


docs:tips_n_tricks:dump_restore.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docs:tips_n_tricks:dump_restore.html [17.08.2012 16:41 CEST] – created peterdocs:tips_n_tricks:dump_restore.html [02.12.2012 13:39 CET] (current) – [restore] peter
Line 2: Line 2:
 ===== restore ===== ===== restore =====
  
-How to use restore in batch mode:+How to use restore most recent files in batch mode:
  
 +  mkdir /tmp/recover
 +  cd /tmp/recover
   restore -x -o -X /tmp/files_to_restore.txt -a  \   restore -x -o -X /tmp/files_to_restore.txt -a  \
-  -f /backup/full.bzdump  +  -f /backup/eldest.bzdump     
-  -f /backup/lev1.bzdump  +  -f /backup/rather_old.bzdump \ 
-  -f /backup/lev2.bzdump  +  -f /backup/less_old.bzdump   
-  :+  -f /backup/most_recent.bzdump 
 + 
 +:!: It seems, ''-X //file//'' ist mandatory for restoring from multi level backups as described here. Leaving out ''-X //file//'' should restore the whole contents of the dump file, but to my experience only a subset of files will be recovered when used with multiple ''-f //file//'' 
 + 
 +^ -x        | e**x**tract | 
 +^ -X <file> | e**X**tract files of names listed in given file | 
 +^ -o        | restore **o**wnership and permission without asking | 
 +^ -a        | read **a**ll volumes, don't ask | 
 +^ -f <file> | read dump from given **f**ile | 
 + 
 + 
 +Ommit the files of levels that do not exist ;-) 
 + 
 +{{tag>Backup Linux restore dump}} 
 +{{entry>Backup}} 
 +{{entry>Linux}} 
 +{{entry>restore}} 
 +{{entry>dump}}
docs/tips_n_tricks/dump_restore.html.1345214472.txt.gz · Last modified: 17.08.2012 16:41 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki