HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- restore file
Operating System - Linux
1830045
Members
15266
Online
109998
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
Go to solution
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
03-28-2004 03:20 PM
03-28-2004 03:20 PM
I use "tar" to backup the files to the tape , tar xvf /dev/st0 /tmp/*.txt , it can successfully backup all the files,
/tmp/a1.txt
/tmp/a2.txt
/tmp/a3.txt
/tmp/a4.txt
/tmp/a5.txt
I tried to use the below command to restore it, but all are fail ,
tar tar xvf /dev/st0 /tmp/*.txt ,
tar tar xvf /dev/st0 /tmp/a*.txt
tar tar xvf /dev/st0 /tmp/*
I have to restore it file by file , the below is ok
tar tar xvf /dev/st0 /tmp/a1.txt
tar tar xvf /dev/st0 /tmp/a2.txt
tar tar xvf /dev/st0 /tmp/a3.txt
, could suggest how can I restore by one time ? thx
/tmp/a1.txt
/tmp/a2.txt
/tmp/a3.txt
/tmp/a4.txt
/tmp/a5.txt
I tried to use the below command to restore it, but all are fail ,
tar tar xvf /dev/st0 /tmp/*.txt ,
tar tar xvf /dev/st0 /tmp/a*.txt
tar tar xvf /dev/st0 /tmp/*
I have to restore it file by file , the below is ok
tar tar xvf /dev/st0 /tmp/a1.txt
tar tar xvf /dev/st0 /tmp/a2.txt
tar tar xvf /dev/st0 /tmp/a3.txt
, could suggest how can I restore by one time ? thx
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 05:11 PM
03-28-2004 05:11 PM
Re: restore file
Did you try:
tar xvf /dev/st0 "/tmp/*.txt"
tar xvf /dev/st0 "/tmp/*.txt"
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 05:24 PM
03-28-2004 05:24 PM
Re: restore file
it is OK , thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 05:25 PM
03-28-2004 05:25 PM
Solution
L.S.
What output is shown when you restore? You use verbose mode, so some output should be shown.
If you didn't remove ALL txt files before restoring, your problem is quoting.
If you type 'tar xvf /dev/sto /tmp/*.txt' the shell will do a filename expansion on /tmp/*.txt, and restore these files. So assuming you did not remove all files, this will expand to the filenames still present on your system, and restoring these files.
You should type tar xvf /des/st0 '/tmp/a*.txt'.
JP.
What output is shown when you restore? You use verbose mode, so some output should be shown.
If you didn't remove ALL txt files before restoring, your problem is quoting.
If you type 'tar xvf /dev/sto /tmp/*.txt' the shell will do a filename expansion on /tmp/*.txt, and restore these files. So assuming you did not remove all files, this will expand to the filenames still present on your system, and restoring these files.
You should type tar xvf /des/st0 '/tmp/a*.txt'.
JP.
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