- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using find with fbackup
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
Discussions
Discussions
Forums
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
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-18-2007 03:57 AM
тАО01-18-2007 03:57 AM
I wanted to know if it's possible to pipe or redirect the list of files to be backed up to fbackup. I want to do something similiar to how find is used in conjunction with tar. For example:
find / -print | fbackup ....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 04:03 AM
тАО01-18-2007 04:03 AM
SolutionNo, what you suggest won't work quite that way. However, 'fbackup' can use a "graph" file in which directories and/or files can be listed for inclusion and/or exclusion. Hence, your 'fnid' output could produce a graph file that looks like:
i /etc/hosts
i /etc/group
i /etc/passwd
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 04:18 AM
тАО01-18-2007 04:18 AM
Re: Using find with fbackup
Ah ok, I get it.
Since I am trying to automate this, do you know of a simple way to get the "i"'s inserted to my find output? Thanks for the quick reply!
-Vince
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 04:28 AM
тАО01-18-2007 04:28 AM
Re: Using find with fbackup
Given a file like:
/etc/group
/etc/hosts
/etc/passwd
You can add the leading "i " with:
# sed -e 's/^/i /p' file > file.out
...or update your file in-place:
# perl -pi -e 's/^/i /' file
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 04:29 AM
тАО01-18-2007 04:29 AM
Re: Using find with fbackup
while read FILENAME
do
echo "i ${FILENAME}" >> mygraphfile
done < $(find / -print)
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 04:50 AM
тАО01-18-2007 04:50 AM
Re: Using find with fbackup
Now this might be off topic but I am still having issues automating this. Please bear with me. I have a temp file that contains the find command to generate the list of files to back up. I use this temp file to execute the find. Then I run your suggested sed command to create a new file for fbackup list but it's not working as expected. Code is below:
FILES=`cat $TempFile1` # Temp file with find command
$FILES > /tmp/files # execute find command and generate file list for fbackup
sed -e 's/^/i /p' /tmp/files > file.list # insert the "i"'s
fbackup -0v -g /tmp/file.list -f - | some other command # run backup
Is my logic or syntax flawed? The error I get is:
fbackup(1412): unable to open graph file /tmp/file.list
fbackup(1404): no files have been specified; (use at least one -i and/or -g option)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 05:02 AM
тАО01-18-2007 05:02 AM
Re: Using find with fbackup
I think that you do not have the graph file where you believe you do, hence the error:
fbackup(1412): unable to open graph file /tmp/file.list
Your post shows redirection without an absolute path:
# sed -e 's/^/i /p' /tmp/files > file.list
..but then:
# fbackup -0v -g /tmp/file.list -f -
...so where is "file.list" really?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 05:06 AM
тАО01-18-2007 05:06 AM
Re: Using find with fbackup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 05:09 AM
тАО01-18-2007 05:09 AM