vgHome
Posting Rules
Disclaimer
Privacy Policy and Contacts
About Rootvg
vgBookmarks
old Bookmarks
vgForum
Recent Posts
Old Forums
vgGuides
AIX6
FAQ
HOWTO
Service Bulletins
QuickRef AIX 5.2
QuickRef AIX 5.2 - Help
vgNews
AIX backup command
Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
November 21, 2008, 08:32:48 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
ROOTVG
>
AIX
>
Administration
>
AIX backup command
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: AIX backup command (Read 815 times)
0 Members and 1 Guest are viewing this topic.
ValentineSmith
Full Member
Posts: 29
Re: AIX backup command
«
Reply #2 on:
June 09, 2008, 01:03:14 AM »
find / ! -size 0 > file
(Note this will also miss out any other 0 length files on the system, i.e. device files, named pipes, etc.)
find / -type f -o -type c -o -type b -o -type s -o -type p ! -size 0 > file
«
Last Edit: June 09, 2008, 01:05:13 AM by ValentineSmith
»
Logged
gz3xzf
Jr. Member
Posts: 11
Re: AIX backup command
«
Reply #1 on:
May 13, 2008, 12:49:07 PM »
The zero length files will slow the backup, the backup command will only know a file is empty once it has opened the file and I suspect that it will have to backup the Inode to ensure the file exists if restored. If these files are not required when the system is restored I would either filter them out during the find or exclude the directories where the empty files exist.
Only find non-zero length files: -
find / ! -size 0 > file
(Note this will also miss out any other 0 length files on the system, i.e. device files, named pipes, etc.)
exclude files by name: -
find / ! -name "filemask*" > file
or
find / | grep -v "filemask" > file
exclude directories: -
find / | grep -v "/dirname/..." > file
I would also miss out the /backup directory as the backup will contain a partial backup file.
Hope that is helpful.
Logged
brent.weaver
Jr. Member
Posts: 13
AIX backup command
«
on:
May 13, 2008, 12:22:38 AM »
I have a scrip that uses find to build a list of files and then uses it to backup the system. Basically:
find / > file
backup -iqvf /backup/backup.fs < file
rm file
exit
I have thousands (7k+) of zero block files. I assume that slows backup down. Am I correct?
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
AIX
-----------------------------
=> Administration
=> Virtualization
=> Applications
=> HACMP
=> Security
=> AIX6 Implementation and Administration
-----------------------------
Hardware
-----------------------------
=> Power6
=> Power5
=> Power4
=> RS/6000 (Power III and earlier)
-----------------------------
Linux on POWER
-----------------------------
=> Planning and Installation
=> General
-----------------------------
Announcements
-----------------------------
=> Announcements
=> Discussion
Loading...
FastPath
HowTo
New in AIX6
RBAC
Security
WPAR
Service Bulletins
InfoCenters
AIX 6.1
AIX 5.3
AIX 5.2
AIX 5.1
- - - - - - -
HMC Downloads
IBM Firmware/LIC
VIOS Support
- - - - - - -
Hardware Documents
PowerHA (HACMP)
Tivoli Manuals
- - - - - - -
IBM Training
src="http://e1.extreme-dm.com/s10.g?login=jootvg&j=n&jv=n" />
Terms of Use
and
Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET