- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to take backup of modified files
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
09-30-2008 08:07 PM
09-30-2008 08:07 PM
How to take backup of modified files
I have one script in my machine,so if i run that script means it will display only modified files.The following format is shown below.
M /te/yogesh/stm/trs/as/xxx.cpp
M /te/yogesh/foundation/trs/as/xxx.isd
M /te/rajesh/turbo/rim/xxx.h
M /te/rajesh/turbo/misc/xxx.h
So the above modified files(i,e with absolute path)i am getting.So i want to copy those modified files with that absolute path in to my destination path (i,e/net/cse-ben/backup)
Can any one tell me how to do scripting in this issue.So that it will be helpful for my script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 09:56 PM
09-30-2008 09:56 PM
Re: How to take backup of modified files
change the find command sysntax as per ur need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 10:14 PM
09-30-2008 10:14 PM
Re: How to take backup of modified files
Suppose if i want to take modified files from /ae directory.What command i have to execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 10:51 PM
09-30-2008 10:51 PM
Re: How to take backup of modified files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2008 11:01 PM
09-30-2008 11:01 PM
Re: How to take backup of modified files
Truncating inode number
/ae
1 block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 12:23 AM
10-01-2008 12:23 AM
Re: How to take backup of modified files
find /ae +mtime +1 -print|cpio -ovcBO
restore archive with
cpio -ivcI
-c option should avoid this error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 01:25 AM
10-01-2008 01:25 AM
Re: How to take backup of modified files
find /ae .mtime +1 print | more
But it is displaying each and every files inside that /ae directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 01:30 AM
10-01-2008 01:30 AM
Re: How to take backup of modified files
-mtime n True if the file modification time subtracted
from the initialization time is n-1 to n
multiples of 24 h. The initialization time
shall be a time between the invocation of the
find utility and the first access by that
invocation of the find utility to any file
specified in its path operands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 01:34 AM
10-01-2008 01:34 AM
Re: How to take backup of modified files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 02:55 AM
10-01-2008 02:55 AM
Re: How to take backup of modified files
no need for an additional find, when you have the file list already!
Just drop the leading 'M /' to get a relative pathname suitable for restoring under your destination path:
cd /
sed 's:^M /::' inputfile | cpio -pdmv /net/cse-ben/backup
The 'cpio' will preserve the directory structure at the destination - for additional options see 'man cpio'.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2008 10:57 AM
10-01-2008 10:57 AM
Re: How to take backup of modified files
> +1,-1,1=what does it mean
See the manpages for 'find'. '+n' means more than 'n'. '-n' means less than 'n'; and 'n' means exactly 'n'. In this case, 'n' is in the units of one day (measured as 24-hours).
Regards!
...JRF...