Bug 1574674

Summary: cannot restore many things from restore file(s)
Product: [Fedora] Fedora Reporter: Ray Holme <rayholme>
Component: dumpAssignee: Josef Ridky <jridky>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 28CC: jridky, phracek, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-03 21:31:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ray Holme 2018-05-03 20:02:22 UTC
Description of problem: when I restore a directory containing real dirs and symbolic links to the dir, the sym links are not restored;
 also all files in sub-directories chosen are not there, just the directory
   chosen and it's sub-directories are restored; NO FILES


Version-Release number of selected component (if applicable):
           dump-0.4-0.36.b46.fc28.x86_64 


How reproducible: 100%


Steps to Reproduce:
1. cd /opt; mkdir something; ln -s something anything
2. dump the file system ( using zip and file splitting)
     cd someplace_to_dump_to
   (dump -u0 -f - -A home.toc -L home -z2 /home | split -b 2GB -d - home.dmp)
3. restore (interactively or full fails too)
     cd dump_dir_above
     zcat home* | (cd /someplace_to_restore; restore -if -)

Actual results: the link anything fails
  I also had tons of files under Pictures and did a full restore as well as an interactive restore.
   the files show as list in the "restore>" prompt
   but adding Pictures (interactively) only gets directories
       in a full restore (someplace else), I am also missing all the pictures.
     some files work fine, but for sub-directoris, they are all empty
     e.g. the top level "Pictures" was chosen in interactive mode
            all sub-directories are there, but NO files

Expected results: dump/restore used to work correctly


Additional info: This make ALL of my backups irrelevant and useless. It also makes it very hard to do a clean install and upate to a new release.

Comment 1 Ray Holme 2018-05-03 21:31:15 UTC
problem was zcat

 needed to

  cat home.dmp* | zcat | (cd ....; restore -if -)


NIGHTMARE