Export import options (--maxdays)

Hi
I’m using Octopus 3.3.10 - I have a question regarding the cli options for the migrator.exe when using it for import/export
In this page the option for the migration are listed under the usage http://docs.octopusdeploy.com/display/OD/Migrating+data+from+Octopus+2.6+to+3.x#MigratingdatafromOctopus2.6to3.x-MaxAge

I couldn’t find such usage description for running Octopus.Migrator.exe with export or import mode (not migrate).
What I am really after was remembering the --maxdays option for import/export - does it exist?

Thanks
Nir

Hi Nir,

Thanks for getting in touch. Unfortunately, the command line options are for the migrate command only as it was designed to help customers migrate large Octopus 2.6 instances to Octopus 3.0. There is no such equivalent for the import/export commands.

I’d recommend adding a suggestion for this feature on our user voice site at https://octopusdeploy.uservoice.com/. If the Octopus community agrees with it, then we’ll likely consider adding it in the future.

I’m sorry I don’t have a better answer. Hope this helps!

Rob

What about updating the command line options for export/import (having usage) in the documentation?
are there any options?
Should this be a user voice request too?

:wink:
thanks

Hi Nir,

Thanks for following-up! I’ve added a task to our documentation updates list to improve this but in the short term, you can view the import/export options from the command line as per the following.

Export

> Octopus.Migrator.exe help export
Octopus Deploy: Migrator version 3.3.12-ci0002 (3.3.12-ci.2+Branch.master.Sha.036448f4a71440a15eb7155ecf6f46c92c750cdf)
Usage: Octopus.Migrator export [<options>]

Where [<options>] is any of:

      --instance=VALUE       Name of the instance to use
      --directory=VALUE      Directory for exported files
      --password=VALUE       Password to encrypt any sensitive values

Or one of the common options:

      --console              Don't attempt to run as a service, even if the
                               user is non-interactive
      --nologo               Don't print title or version information

Import

λ Octopus.Migrator.exe help import
Octopus Deploy: Migrator version 3.3.12-ci0002 (3.3.12-ci.2+Branch.master.Sha.036448f4a71440a15eb7155ecf6f46c92c750cdf)
Usage: Octopus.Migrator import [<options>]

Where [<options>] is any of:

      --instance=VALUE       Name of the instance to use
      --directory=VALUE      Directory for imported files
      --password=VALUE       Password for any sensitive values
      --dry-run              Do not commit changes, just print what would
                               have happened
      --overwrite            If a document with the same name already exists,
                               it will be skipped by default. Use --overwrite
                               to force it to be replaced.
      --force                Imports even if there are validation errors
                               (CAUTION: this may put the database in a bad
                               state).

Or one of the common options:

      --console              Don't attempt to run as a service, even if the
                               user is non-interactive
      --nologo               Don't print title or version information

If you need any further clarification, just let me know.

Thanks

Rob

Hi Rob,
Thanks a lot!
This is exactly what I was after.
Regards,
Nir