ONTAP Discussions

Directory level backup using OSSV

deygaurab
3,616 Views

Hi Friends,

Any Idea if I can do a directory level backup using OSSV. I tried to backup a directory under program files today and it failed with error:

snapvault start -S GXPBD001:C:\Program Files\Qldata SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

Too many arguments.

usage:

This command is available only on a snapvault secondary.

snapvault start [-r [-f]] [-w] [-k <kbs>] [-t <n>] [-o <options>] [-S [<primary_system>:]<primary_path>] [<secondary_filer>:]<secondary_path>

        where <options> is <opt_name>=<opt_value>[[,<opt_name>=<opt_value>]...]

        For more information about the available options, please see the

        SnapVault man page.

When I could not solve it, I configured the backup for the entire C drive and it worked. Hence I was wondering if there is any limitation with OSSV that it just doesnt do a backup of  any directory with a space in its name. (e.g Program Files)

Thanks,

Rahul

1 ACCEPTED SOLUTION

mh_sh_team
3,616 Views

Hey,

Directories can be backed up using ossv (drives & directories, not files).

It seems like you wrote it fine, maybe you should try writing it this way:

snapvault start -S GXPBD001:"C:\Program Files\Qldata" SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

or

snapvault start -S GXPBD001:C:\"Program Files"\Qldata SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

Spaces does tend to make some problems.

Please let me know if that helps.


View solution in original post

3 REPLIES 3

mh_sh_team
3,617 Views

Hey,

Directories can be backed up using ossv (drives & directories, not files).

It seems like you wrote it fine, maybe you should try writing it this way:

snapvault start -S GXPBD001:"C:\Program Files\Qldata" SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

or

snapvault start -S GXPBD001:C:\"Program Files"\Qldata SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

Spaces does tend to make some problems.

Please let me know if that helps.


jholtrop
3,616 Views

Hi,

I don't think this is the problem.

I've got a simular problem with a linux or unix system

I can backup /var because this is a whole filesystem,

but I can not backup /etc because this is a part of the root filesystem /

I get the same message

deygaurab
3,616 Views

Hi Guys,

The command mentioned by mh_sh_team worked fine.

snapvault start -S GXPBD001:C:\"Program Files"\Qldata SPC-fas2040:/vol/vol_GXPBD_BKP/GLPBD001_Qldata

If there is any space in directory name than running the command in quotes works fine.

Cheers

Rahul

Public