AIX backup command
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 28, 2008, 05:17:15 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: AIX backup command  (Read 576 times)
0 Members and 1 Guest are viewing this topic.
ValentineSmith
Full Member
***
Offline Offline

Posts: 25


« 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
**
Offline Offline

Posts: 11


« 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
**
Offline Offline

Posts: 13


« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM




eXTReMe Tracker

Terms of Use and Privacy and Security Policies
Copyright 2001-2008 Michael Felt and ROOTVG.NET