BACKUP AND COMPRESS; RESTORE AND UNCOMPRESS

ITEM: RTA000030732



QUESTION:                                                                       
I have five different database filesystems that I need to back up.  The         
total size of these filesystems is just greater than 3 gig, so I can            
no longer back them up to one tape with a cron job that runs after              
hours.                                                                          
What I would like to do is write a script to back them up and compress          
them to a file on my disk.  I used the following command:                       
   cd /dbli  (this is one of my filesystems)                                    
   find . -print | compress | dd of=/database/dbli.backup                       
This command seemed to do what I wanted it to do.  My problem is that I         
cannot determine the command to uncompress and restore. This is my start        
   dd if=/database/dbli.backup | uncompress                                     
I get a list of files sent to the screen, but nothing restores.  Is it          
possible to do what I am trying to do?                                          
                                                                               
---------- ---------- ---------- --------- ---------- ----------                
A: It looks like the backup command was inadvertently left out of your          
   command.  What happened was after the find, a compress of the list           
   was made, then the compressed list was sent to dd.  Try the following        
   commands to backup and restore:                                              
                                                                                
   (Backup)                                                                     
   find . -print | backup -if - | compress | dd of=/database/dbli.backup        
                                                                                
   (Verify)                                                                     
   dd if=/database/dbli.backup | uncompress | restore -Tvf-                     
                                                                                
   (Restore)                                                                    
   dd if=/database/dbli.backup | uncompress | restore -xvf-                     
                                                                               
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q626277      CDSLV                      
                                                                                
Additional search words:                                                        
APR93 BACKUP CDSLV COMPRESS COMPRESSION IX MANAGEMENT OP RECOVERY               
RESTORE RISCMGMT RISCSYSTEM SOFTWARE SYS SYSTEM UNCOMPRESS                      
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000030732 ITEM: RTA000030732
Dated: 03/1996 Category: RISCMGMT
This HTML file was generated 99/06/24~12:43:12
Comments or suggestions? Contact us