Backup and restore in unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Backup and restore in unix
# 1  
Old 09-15-2010
Backup and restore in unix

Hello everybody,

i am trying to make a script in UNIX to backup some compressed files to a tape drive. The thing is that i cannot use cpio command because some of these files are greater than 2GB. so i think the only solution left is backup command.
to restore the files i should use the restore command. i am not sure if i can specify a given file to restore and not restoring the whole backup. is this possible with restore command?

thank you in advance
# 2  
Old 09-15-2010
You do not tell what file system is this and what OS you are running. In any case, unix tar, gnu tar or star should handle files larger than 2GB in addition to your OS specific backup/restore commands.
# 3  
Old 09-15-2010
i dont wish to backup a file system. just some specific compressed files that i will create under a path.
the OS is AIX 5.3.
yes i am aware of the tar command but i think that tar only copies files right? what i want to do is to backup those files to a tape. and then when i want to make the restore i want to do it in a way that i can restore only a specific file and not all of them.
is it possible to do this using tar?
# 4  
Old 09-15-2010
Quote:
Originally Posted by omonoiatis9
yes i am aware of the tar command but i think that tar only copies files right?
No. "cp" is copying files.
Quote:
what i want to do is to backup those files to a tape. and then when i want to make the restore i want to do it in a way that i can restore only a specific file and not all of them.
is it possible to do this using tar?
That's what it was designed to do: "tar" = "Tape ARchive".

Last edited by jlliagre; 09-15-2010 at 09:27 AM.. Reason: typo
# 5  
Old 09-15-2010
ok but is it possible to restore a specific file?
i mean i will backup on tape around 120 different compressed files.
when i want to restore from tape i may only need to restore just one of them. i can do that with tar command or i should use different command for the restore?
# 6  
Old 09-15-2010
You use the tar command too to restore. Just specify the file(s) you want as parameter(s).
Have a look at the tar manual pages for syntax / examples.
# 7  
Old 09-16-2010
ok thank you for your help!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

2. Solaris

Zpool backup and restore

hi, my requirement goes something like this: In current setup, we have SPARC server running Solaris10 5/08. Out of 3 HDD available, 2 HDD (other than root) were zpool-ed and 3 zones were created. Now, we have bought a new server with similar H/W config and planning to move the zones... (1 Reply)
Discussion started by: EmbedUX
1 Replies

3. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

4. AIX

HMC backup/restore

Hey Some questions.. 1. can we install hmc fixes/patches from nfs mount? 2. Lets say my hmc crashed are these the steps for recovery? - install the base hmc software (product cd) - install the updates/patches/corrective service - restore the critical console date am... (4 Replies)
Discussion started by: balaji_prk
4 Replies

5. HP-UX

hp unix backup&restore

Dear frnds, i am going to use hp-ux11i first time, actually migrated from true64unix(digital), Now confused with the backup and restore procedures, i was using vdump and vrestore in that which was really much comfortable.could you suggest which is best type backup(similar to vdump and vrestore)... (8 Replies)
Discussion started by: jestinabel
8 Replies

6. HP-UX

Backup Tape Restore?

I am trying to do a restore on a backup tape (DDS2) and am having a little trouble. For one, I dont know how the tape was made, whether is was tar, cpio, dump..etc. Anyone know how to restore a tape without knowing the format of the backup? (5 Replies)
Discussion started by: bake255
5 Replies

7. HP-UX

F-Backup restore

Hello! i have a blank harddrive and a complete tape backup of the workstation. the backup is made with F-Backup. Now my question is: how can i restore my workstation? thanks for every idea! paul tittel hup-si (3 Replies)
Discussion started by: paultittel
3 Replies

8. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

9. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies

10. Solaris

Why is restore slower than backup?

After my big disaster, I'm restoring from tape on my Sun box. This is the second time I've used 'ufsrestore' with this DEC TZ88 SCSI DLT drive. The last time was for a migration from one box to another. Both the last time and this time, the restore has taken a hell of a lot longer than the... (4 Replies)
Discussion started by: deckard
4 Replies
Login or Register to Ask a Question