HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Backup command needed
Operating System - HP-UX
1832666
Members
3161
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
07-26-2007 01:34 PM
07-26-2007 01:34 PM
Backup command needed
Hi, my dear friends,
Please give me command
1. to tar or backup more than 1 file or
directory.
eg : in /abc
there is /abc1,abc2,abc3 subdirecorty
what is the backup command to
backup /abc1 and /abc2 ?
2. to tar or fbackup for a range of file.
eg : in /abc there is all *.dbf file.
I want to specify to backup a*.dbf to
k*.dbf, may I know how to do that ?
thank you very much
regards
ng
Please give me command
1. to tar or backup more than 1 file or
directory.
eg : in /abc
there is /abc1,abc2,abc3 subdirecorty
what is the backup command to
backup /abc1 and /abc2 ?
2. to tar or fbackup for a range of file.
eg : in /abc there is all *.dbf file.
I want to specify to backup a*.dbf to
k*.dbf, may I know how to do that ?
thank you very much
regards
ng
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2007 02:10 PM
07-26-2007 02:10 PM
Re: Backup command needed
Tar will accept multiple backup targets. If the target is a file, a file will be backed up. If the target is a directory, a directory will be backed up recursively.
tar cvf myarchivefile.tar myfile1 myfile2 /abcdir1 /adcdir2
The vanilla version of tar doesn't understand wildcards but the shell does so:
tar cvf /dev/rmt/1m [a-k]*.dbf
Of course, you could have tried the radical approach of "man tar".
tar cvf myarchivefile.tar myfile1 myfile2 /abcdir1 /adcdir2
The vanilla version of tar doesn't understand wildcards but the shell does so:
tar cvf /dev/rmt/1m [a-k]*.dbf
Of course, you could have tried the radical approach of "man tar".
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2007 04:16 PM
07-26-2007 04:16 PM
Re: Backup command needed
If you need to back up multiple directories and each be relative, you can use:
$ tar -cvf myarchivefile.tar -C /abc1 . -C /abc2 .
$ tar -cvf myarchivefile.tar -C /abc1 . -C /abc2 .
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP