- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with old user cleanup
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
01-31-2001 07:15 AM
01-31-2001 07:15 AM
I am cleaning up old users off the HP-UX. I can do:
find / -name xxxx
and list the files that they have created or have ownership to. Is there a way to pipe this into a tar or similar command to create a single file with their old files before I run a find command to remove the files?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:20 AM
01-31-2001 07:20 AM
Re: Help with old user cleanup
find / -name xxx -exec mv {} /newdir/dir/ \;
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:23 AM
01-31-2001 07:23 AM
Re: Help with old user cleanup
Forgot to mention that with the -user option, if the next argument isn't a login name, it will be taken as numeric.
This is useful if you remove files from users already deleted from /etc/passwd.
All the best,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:23 AM
01-31-2001 07:23 AM
Re: Help with old user cleanup
for this purpose i would recommend cpio:
find / -name xxxx | cpio -oc | gzip -c >userfiles.cpio.gz
I have used gzip to reduce disk usage.
To restore something you could use:
gzip -dc < userfiles.cpio.gz |cpio -imdvc
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 07:28 AM
01-31-2001 07:28 AM
Re: Help with old user cleanup
I think I'll go with Dan's approach and put to a tar file which I'll gzip up. Once all the old users files are created I can move them to tape.