Mounting an NFS on Solaris box to create a flash archive backup

No. Final field is path to archive and you want to write it to /mnt.....

As I wrote it.

based on the command description, the last part shall be the path to the archive, which shall be /mnt/Backup.flar.
when I was testig and troubleshooting the NFS share, I have created two mount points for the same NFS server. /mnt and /Backup. I assume I should add another -x /Backup ???

Yes, I got you now, but I got confused from the edit note you added.

Yes, if you're using /Backup as the mount point then edit the command appropriately both for exclude and archive path.

OBSERVATION only:

You mentioned previously that the good machine did not have /mnt existing. /mnt is always created on a normal Solaris install. Therefore it makes me wonder whether the good machine itself was created using a flash archive with /mnt excluded.

sorry for asking many questions. But I need to confirm if it's ok to add two or more directories after -x. I was wondering what the syntax would be.

flarcreate -n Backup -a Faris -c -x /mnt -x /Backup /mnt/Backup.flar

I confirmed that it wasn't there untill I created it with
mkdir

Please read those links. You are the sysadmin and you can exclude any directories you like but be very aware that they won't appear on your clone so they must not be critical files for the O/S or any apps.

I would also suggest using multiple -x switches (e.g. -x /mnt -x /somedirectory) or create an exclusion list file and use that.

Be also aware that you can exclude a top level directory but then include a subdirectory.

As sysadmin you need to know exactly what you do and don't want archived.

Is there a reason why you don't just want to archive the whole damned system?

I really read them! I'm not that lazy person who waits for letral technical guidance. But really there wasn't anything in the links to show how to exclude multiple directories, except for the exclusion list file.

I want to archive the whole thing!
But is it right to include the directory of a mount point???
/Backup and /mnt are both mount points for the exact same source folder on the server side

Umount one of them.
Use the other for the flar target, and exclude it from the source files (otherwise, the archive would contain itself in a half-written state).

1 Like

What? As @MadeInGermany says.....you have this NFS handle mounted twice?

No, no, no.

I tried before. umount /Backup
I get the prompt "/Backup no such file or directory"

You don't need to exclude mount points. You're only excluding the NAS mount because you don't want it trying to back itself up! Other mount points don't matter.

/mnt and /Backup are both NAS mount points...the same NAS

Just go for it and if you get an error that you don't understand post the actual command that you used AND the error you got.

So I go for it and use -x /mnt -x /Backup???

No, only exclude the mount point that you are writing the archive to.

What do you mean by this????? Are you mounting the same NFS handle twice? Don't do that.

Are you mounting two different NFS handles one on /mnt and the other on /Backup? Why?

I'm confused.