1833756 Members
2547 Online
110063 Solutions
New Discussion

skip files with fbackup

 
someone_4
Honored Contributor

skip files with fbackup

Hello

I have a 3 deep directory tree for user accounts.

/mail/CommuniGate/Accounts/r.sub/i.sub/richardl.macnt#

in the macnt directory I have the following files:
INBOX.mbox account.info account.settings

Without omniback is there a way to back everything up in the /mail filesystem EXEPT files without the mbox extention?

Thanks
Richard
12 REPLIES 12
Jean-Louis Phelix
Honored Contributor

Re: skip files with fbackup

Hi,

You could tr a find | cpio, something like :

find /mail -name '*.mbox' | cpio -ovB > xxx

or everything except '.mbox' files :

find /mail ! -name '*.mbox' | cpio -ovB > xxx

Regards.
It works for me (© Bill McNAMARA ...)
Bruno Ganino
Honored Contributor

Re: skip files with fbackup

Try
find /mail ! -name '*.mbox' | tar -xvf > destination

Bye
Bruno
Torino (Turin) +2H
Jean-Louis Phelix
Honored Contributor

Re: skip files with fbackup

Hi

Sorry Bruno, but tar cannot work on file names, even with "f -". Only cpio or pax do.

Regards.
It works for me (© Bill McNAMARA ...)
Paula J Frazer-Campbell
Honored Contributor

Re: skip files with fbackup

Hi
Fbackup has an include and exclude function.
Easiest was is to configure the backup using SAM.

i /root (included)
e /temp (excluded)

See Man fbackup.

Paula
If you can spell SysAdmin then you is one - anon
Elmar P. Kolkman
Honored Contributor

Re: skip files with fbackup

Actually, the tar can work, but it should read:
tar -cvf <> `find /mail ! -name '*.mbox'`

But this will probably result in 'commandline too large'...

A better way with tar would be:
find /mail -name *.mbox -print >files2excl
tar -cvfE <> files2excl /mail

(files2excl will contain the files you want to exclude from the backup)...
Every problem has at least one solution. Only some solutions are harder to find.
Michael Schulte zur Sur
Honored Contributor

Re: skip files with fbackup

Hi,

try this one:
tar cvf zz `find /mail/CommuniGate/Accounts/r.sub/i.sub/richardl.macnt ! -name "*.mbox"`

greetings,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: skip files with fbackup

Hi Bruno,

as Jean-Louis points out, tar cant take the filenames from stdin besides you extract instead of creating an archive. ;-)

greetings,

Michael
Bruno Ganino
Honored Contributor

Re: skip files with fbackup

Boys, I did not want to submit my previous message (I have submitted without wanting it). It is a mistaken command, thanks for your warnings.
Richard, my answer had to be this:

#find /mail/CommuniGate/Accounts/r.sub/i.sub ! -name *.mbox -print > elist
#tar -cvfE elist /mail

(I hope of to have understood well which it is your problem)

HTH
Bruno
Torino (Turin) +2H
Michael Schulte zur Sur
Honored Contributor

Re: skip files with fbackup

Hi,

if the problem is solved, could you spare some points from the endless supply of points, HP has, for those, who could help you? ;-)

greetings,

Michael
Michael Schulte zur Sur
Honored Contributor

Re: skip files with fbackup

Hi Richard,

are you still with us?

greetings,

Michael
someone_4
Honored Contributor

Re: skip files with fbackup

Michael,

Yes, I am still with you.
And there is no need to remind me to give points.

I have been here long enough and know to give points and I have done so since 2000.If you look at my profile you will see that I have assigned points to 1889 of 2005 responses to my questions. That is a 94% avg.

And it is only 94% because of the fact that I have not gone back to find the other questions to give points to. But I feel that I have done my fair share. You can be assured that I will assign points and respond as soon as I get a chance.


Richard
Michael Schulte zur Sur
Honored Contributor

Re: skip files with fbackup

Hi Richard,

my apologies.. Should have looked for the history first. No offence meant.

greetings,

Michael