09-29-2005
Just for the sake of completeness, ufsdump(1M) does permit backups of individual subdirectories in a filesystem. For instance, to backup the "/etc/inet" subdirectory:
# ufsdump 0f /dev/rmt/0 /etc/inet
This is a subdirectory on the root filesystem, but only the specified files/directories are ufsdumped... not the entire root filesystem.
Keep in mind that the entire directory structure of the specified files/directories is backed up (and restored.)
FWIW.
Matt
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok I'm trying to backup a HD using ufsdump but no matter what I do it rewinds the tape after the dump. Now the tape isn't full (only 285mb) and I still have 6 more partitions I want to put on this tape.
How can I stop the tape from rewinding because I can't think of anything.
Also is there any... (4 Replies)
Discussion started by: merlin
4 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys,
I'm writing a shell script that presents the user with various options, they select one (numbered 1-9) and it then excecutes the correct code. No problem, but I'm having slight difficulty with one option.
The user can select to backup all the files in the current directory to another... (2 Replies)
Discussion started by: indigoecho
2 Replies
3. Solaris
I need to rlogin to a remote server, execute a usfdump to copy all its files to a 8mm cartridge tape. Take that tape to a local server room and execute a usfrestore to load all the files to the back-up server. The back-up server must also be formatted to look identical to the remote server. ... (1 Reply)
Discussion started by: davels
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I'm about to start a regular backup schedule for my Linux system.
I need some pointers if I may :)
The system is *mainly* used as a personal home computer (it's actually a laptop running SuSE 9.2) although I do host some client material from it being a PHP developer.
I know that in... (2 Replies)
Discussion started by: d11wtq
2 Replies
5. Solaris
Hello Mentors,
Before anything else I would like to thanks to all expert here especially Pressy as he guided me to recover our server from disk failure. I posted a lot of question from these forum site concerning on how to recover our server and luckly you guys help me. Our server is now up and... (6 Replies)
Discussion started by: eykyn17
6 Replies
6. Solaris
Hello buddy,
I used usfbackup command but error after full backup Solaris 5.5.1
/dev/c0t3d0s0 /
/dev/c0t3d0s6 /usr
I get error when restart after complete full backup
Can't load the root file system
Type 'go' to resume
***FULL MY STORY***
... (1 Reply)
Discussion started by: posky
1 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I run a web hosting company, and I'm wondering how I can use cPanel's Cron Jobs so that a copy of my entire home directory and a copy all of my MySQL databases can be compressed and emailed to me. I know nothing about Linux, Unix, or whatever that thing with the penguin is called. :)
... (7 Replies)
Discussion started by: millipedeman
7 Replies
8. AIX
we are running aix on are server. we would like to start doing online backups, but the software company that we use is not beeing much help on what files we are backing up. is there a command that will tell me what files that we are backing up. they offer a service that would back it up for use,... (3 Replies)
Discussion started by: shane.hankins
3 Replies
9. Shell Programming and Scripting
Hi,
I am not too familiar with Unix scripting but I have to write code to find all the files under all the sub directories under a parent directory of unix location and move them to the corresponding Windows location.
For eg: I have \home\sreenu\Files\
Under neath this I have multiple sub... (3 Replies)
Discussion started by: raj.sreenu
3 Replies
10. UNIX for Advanced & Expert Users
Are there any recommended methods for Backing up an entire HD? I want to backup my data. I do not care about the OS file. I just want my work, movies, and music. I have about 600 GB of work, movies, and music so a bit worried about fragmentation if I just copy and paste. (1 Reply)
Discussion started by: cokedude
1 Replies
BACKUP(8) System Manager's Manual BACKUP(8)
NAME
backup - backup files
SYNOPSIS
backup [-djmnorstvz] dir1 dir2
OPTIONS
-d At top level, only directories are backed up
-j Do not copy junk: *.Z, *.bak, a.out, core, etc
-m If device full, prompt for new diskette
-n Do not backup top-level directories
-o Do not copy *.o files
-r Restore files
-s Do not copy *.s files
-t Preserve creation times
-v Verbose; list files being backed up
-z Compress the files on the backup medium
EXAMPLES
backup -mz . /f0 # Backup current directory compressed
backup /bin /usr/bin
# Backup bin from RAM disk to hard disk
DESCRIPTION
Backup (recursively) backs up the contents of a given directory and its subdirectories to another part of the file system. It has two typ-
ical uses. First, some portion of the file system can be backed up onto 1 or more diskettes. When a diskette fills up, the user is
prompted for a new one. The backups are in the form of mountable file systems. Second, a directory on RAM disk can be backed up onto hard
disk. If the target directory is empty, the entire source directory is copied there, optionally compressed to save space. If the target
directory is an old backup, only those files in the target directory that are older than similar names in the source directory are
replaced. Backup uses times for this purpose, like make. Calling Backup as Restore is equivalent to using the -r option; this replaces
newer files in the target directory with older files from the source directory, uncompressing them if necessary. The target directory con-
tents are thus returned to some previous state.
SEE ALSO
tar(1).
BACKUP(8)