- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar backup
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
05-16-2007 06:24 PM
05-16-2007 06:24 PM
tar backup
I want to take the tar backup of / directory except /var. How I can take it?
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 06:29 PM
05-16-2007 06:29 PM
Re: tar backup
remember / directory also contains non vg00 filesystems , if so it will try to back up those as well.
Find out all the directories under / and specify one by one , excluding var , that will allow you to take the backup without /var.
Ex: # tar -cvf /dir1 /der2 /dir3 ......
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 06:34 PM
05-16-2007 06:34 PM
Re: tar backup
Regards,
Sudhakaran.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 07:06 PM
05-16-2007 07:06 PM
Re: tar backup
You also need the files directly under /.
You can use this:
# ls -d /!(var)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:07 PM
05-16-2007 08:07 PM
Re: tar backup
# ls -d /!(var)
This also will not list files but only directories only , excluding var. Though at this point of time, it's good idea to use fbackup ,
Sudhapage, Check this out:
http://www.docs.hp.com/en/B2355-60105/fbackup.1M.html
And check the -e option for exclusion.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:16 PM
05-16-2007 08:16 PM
Re: tar backup
#ls -d /!(var)
/ACC /bin /home /lost+found /opt /stand /usr
/README /dev /house /mnt /root /terms.txt /var
/acc-beta10.tar.gz /etc /lib /net /sbin /tmp
Here terms.txt and acc-beta10.tar.gz is file, but shows as a directory on root.
Hence its good to use fbackup.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 08:24 PM
05-16-2007 08:24 PM
Re: tar backup
check this out:
# ls -d / !(var)
# ls -d / !(var)
/ acc-beta10.tar.gz etc lib net sbin tmp
ACC bin home lost+found opt stand usr
README dev house mnt root terms.txt
#
Hence you can use the command as follows:
# tar -cvf /dev/rmt/0mn `ls -d / !(var) | grep -v / | xargs`
Enjoy,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2007 09:08 PM
05-16-2007 09:08 PM
Re: tar backup
Sure it will list files. It lists all "files" under / except var. If any of those "files" is a directory, it (-d) doesn't list the content.
>if you give a space it shows ok.
No, this causes it to list the files in the current directory, possibly not "/".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2007 02:40 PM
05-17-2007 02:40 PM
Re: tar backup
Sudhapage any update...??
You must review your threads once posted.!!