- 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
Discussions
Discussions
Forums
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
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-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
- « Previous
-
- 1
- 2
- Next »