- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Simple TAR command
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
07-14-2009 02:15 AM
07-14-2009 02:15 AM
Simple TAR command
Just a simple question about tar.
We have a filesystem,
/
/boot
/usr/users
In order to take the backup of these filesystems, we connected USB drive and mounted under /usb.
Then to get the root backup , I used
tar -cvf root.tar /
And it showed as after few minutes it was taking the backup of /usb contents as well.
Oooops something not expected. Is it a normal behaviour , or we are missing some option here?
How do we avoid this.
In short how do we take the complete filesystem backup excluding specific filesystems?
You guys must be running backup scripts for so many years ... then how did you manage to handle this situation.
Please suggest.
Thanx,
admin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 02:56 AM
07-14-2009 02:56 AM
Re: Simple TAR command
you should use --exclude=usb,
and don;t forget use -p ( for the file/directory ownership )
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 03:03 AM
07-14-2009 03:03 AM
Re: Simple TAR command
if the usb disk is mounted as /usb
and you in the root /
them
tar cvfp /usb/file+of_backup.tar --directory / --exclude=usb
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 03:24 AM
07-14-2009 03:24 AM
Re: Simple TAR command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 03:25 AM
07-14-2009 03:25 AM
Re: Simple TAR command
This is expected.
or better yet, use the "--one-file-system" option with tar.
Goran