How to exclude directory from (File Systems) backup?

Hello AIX experts,

I have a file system called /bossapp
Its size = 77.5 GB
I want to take a File Systems backup for this one using smitty, it is very easy, but the problem is I want to exclude one directory called (ORIGIN).

How?

The steps are very easy to take a File Systems backup, by typing: #smitty storage, then choose (File Systems) --> then choose (Backup a File System) --> then write the name of the file system.

The question now, how to exclude a specific directory?!

Waiting your answer.

Hi,

when you press the "F6" key in the Smitty Menu "Backup a File System", you will see the underlying command.

In this case the backup command is used to backup your filesystem and man backup will show you some more options.

I think a simple combination of find + grep + backup will help you.

find /bossapp | grep -v "/ORIGIN*" | backup -i -f /dev/rmt0
1 Like

Great solution.
Thanks XrAY
I will think to make a good combination.