What about using tar?

tar cvf /dev/rmt/1mb "directory1" "directory2" "directory3" 

The only caveat is that it will backup the directory file 
structure as it is, so if you do a restore, it will restore 
over top of the same place (it will overwrite).

Whereas:

cd /directory1 ; tar cvf /dev/rmt/1mb "."

Will backup the directory with relative filenames,
so if you wanted to restore you could:

cd /tmp ; tar xvf /dev/rmt/1mb "."+the filename
(do a tar tvf /dev/rmt/1mb to see the filename structure,
    since they will all start with "./" you can restore
    the files anywhere, setup a Q pointer to that directory
    and copy out what yout want.)

or 

If all 6 six accounts are the only directories under a parent,
you could:

cd /parent_directory ; tar cvf /dev/rmt/1mb --exclude "exclude directory" 
--exclude "exclude directory" "."  (or use -X filename) and place all the 
directories to exclude in that file

George

> -----Original Message-----
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
> Sent: Monday, March 14, 2011 11:05 AM
> To: U2 Users List
> Subject: Re: [U2] backing up system
> 
> Consider doing an FTP backup via FileZilla.
> 
> --Bill
> 
> -----Original Message-----
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of david yu
> Sent: Friday, March 11, 2011 5:54 PM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] backing up system
> 
> hello,
> 
> We are using HP-UX 11.23 and I have a question in regards to backing up
> system by account, In the root directory we have 6 accounts, DBCAlive,
> DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ.  When we do our nightly
> backup, we backup all the accounts by using cpio but sometimes we just
> want to backup 2 accounts at the same time, anyone knows how this is
> done?
> 
> here is the command that we use to backup:
> 
> mt -t /dev/rmt/1mb rewind
> cd /
> find . -print|cpio -ovcB>/dev/rmt/1mb
> 
> Any assistance will be greatly appreciated.
> 
> thanks!
> 
> 
> 
> 
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to