- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Backup difference in HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 01:43 PM
10-07-2007 01:43 PM
Backup difference in HP-UX
Thankyou in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 01:49 PM
10-07-2007 01:49 PM
Re: Backup difference in HP-UX
Please try fbackup, you can invoke from Sam gui
WK
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 02:07 PM
10-07-2007 02:07 PM
Re: Backup difference in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 03:05 PM
10-07-2007 03:05 PM
Re: Backup difference in HP-UX
Sure you can use tar.
PHCO_36587 11.11 tar(1) cumulative patch
This will fix
enhance tar(1) to support the archival
of files up to 8GB from the current 2GB
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 03:10 PM
10-07-2007 03:10 PM
Re: Backup difference in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 03:17 PM
10-07-2007 03:17 PM
Re: Backup difference in HP-UX
$ tar -cvf file.tar $(find path -mtime days)
cpio(1) will directly take the output of find as its stdin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 03:29 PM
10-07-2007 03:29 PM
Re: Backup difference in HP-UX
way, which may be why you can't find any
appropriate "tar" options to do it.
Dump-family programs ("dump" and "vxdump", on
HP-UX) were. ("man dump", "man vxdump".)
Gnu "tar" has some features to help with
this, but you'd probably need to use Gnu
"tar" exclusively to get the benefits.
http://www.gnu.org/software/tar/manual/tar.html#Incremental-Dumps
You may be able to use "find -newer" to make
a list of files which have changed since
some date-time, and then feed that list into
"tar", but you'd be making a lot of work for
yourself.
Sometimes it really helps to use the right
tool for the job, and "tar" may not be the
right tool for this job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2007 07:11 PM
10-07-2007 07:11 PM
Re: Backup difference in HP-UX
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2007 01:24 AM
10-08-2007 01:24 AM
Re: Backup difference in HP-UX
Well, you also can use fbackup to write to tape, and the name 'fbackup' says much about the intention of the command - you can backup your system to tape and also do incremental backups later on.
So you should really consider to use this tool.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 12:13 AM
10-09-2007 12:13 AM
Re: Backup difference in HP-UX
Do you mean you are looking to backup the differences between the computer as it is now and what was placed on the tape a few days ago?
This is called an incremental backup.
The fbackup command can do this for you.
Also, no one mentioned cpio. Assuming you backup everything from filesystem /utl to tape drive /dev/rmt/0m.
Command to backup all to cpio:
cd /
find ./utl -print | cpio -odumvc > /dev/rmt/0m
TO use cpio incremental, everything from the last day.
find ./utl -mtime -1 -print | cpio -odumvc > /dev/rmt/0m
Here's fbackup stuff.
# the meaning behind the flags.
#fbackup -f - the device to which output will be sent
# -0 - from the beginnning of the time (full backup)
# -u - update /utl/backups/dates -file
# -g - file that contains the list of files/directories to be included
# -I - write an index to file path
# -c - configuration file
# -d - backup dates file
# -V - volume header information
Run man pages on fbackup, cpio, and tar.
There is one bad thing about fbackup that everybody likes (except me).
An fbackup uses a whole tape. So you can fit 200 backups on a tape? No. Too bad. You can only save 1 backup per tape. But everybody likes it because of recovery speed and less digging for tapes (I think).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 01:37 AM
10-09-2007 01:37 AM
Re: Backup difference in HP-UX
While tar itself cannot do a incremental or differential backup, I use tar on Sun systems to do incremental backups. Here's how I do it:
When I run a full backup of the machine on the weekend, once the backup is done, I write a file to a directory. This file is my 'flag file'. Then the next day, when I want to backup only the changes that have occured since the last full backup, I first search the directory for files 'newer' than the flag file. These would be any files that have been created or changed since the last backup. I write the results of the find to a file and then use that list as the source of files to backup for tar.
That's about it. Keep in mind that this is not a true incremental backup, but suffices for my needs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 03:39 AM
10-09-2007 03:39 AM
Re: Backup difference in HP-UX
tar -cvf /dev/rmt/0mn $(find ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 03:41 AM
10-09-2007 03:41 AM
Re: Backup difference in HP-UX
$ tar -cvf file.tar $(find path -mtime days)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 07:39 AM
10-09-2007 07:39 AM
Re: Backup difference in HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 11:11 AM
10-09-2007 11:11 AM
Re: Backup difference in HP-UX
$ tar -cvf file.tar $(find path -mtime days)
"days" above would probably be -days for all files modified less than days ago.
TwoProc's point is that you should creating a reference file and use -newer ref-file, instead of -days.
In both cases, this will not work if there are too many files to fit on the command line. Using pax(1) would work:
$ find path -newer ref-file | pax -w -f file.tar