Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instance:export and instance:download command #41

Open
SGD1953 opened this issue May 23, 2019 · 5 comments
Open

Add instance:export and instance:download command #41

SGD1953 opened this issue May 23, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@SGD1953
Copy link
Contributor

SGD1953 commented May 23, 2019

It would be great if sfcc-ci would allow to transfer one sandbox' state to another, therefore commands to run a site export & download it would be desirable.

@tobiaslohr tobiaslohr added the enhancement New feature or request label Jun 27, 2019
@tobiaslohr
Copy link
Contributor

Proposal:

Two additional commands (see below), should be tracked as separate issues. Once they are done, we can think about providing a high level command to copy an instance (propose to limit to sandbox only) which makes use of

New Command 1:

sfcc-ci instance:export --instance <instance> --data-units <units> --export-file <file> --sync

Options:

--instance optional, being the host name of the instance,
--data-units being the set of data in JSON format to export
--export-file being the file to store exported data to on the instance, relative to impex/src/instance
--sync optional, whether to run in sync mode

New Command 2:

sfcc-ci data:download --instance <instance> --source <target> --file <file>

Options:

--instance optional, being the host name of the instance, e.g.
--file being the file to download from instance and
--source being the source location on the instance to download from relative to /webdav/Sites/Impex/, e.g. "src/instance"

@SGD1953
Copy link
Contributor Author

SGD1953 commented Jul 24, 2019

Love it, would only update to sfcc-ci data:download --instance <instance> --source <WebDAV folder> --file <file>. Also why do we separate file & folder?

@tobiaslohr
Copy link
Contributor

tobiaslohr commented Jul 24, 2019

Love it, would only update to sfcc-ci data:download --instance --source --file

Shall source be relative to /webdav/Sites/Impex/ or relative to /webdav/Sites/

Also why do we separate file & folder?

Just a proposal right now to be somewhat consistent with #30. Thoughts?

@tobiaslohr tobiaslohr self-assigned this Jul 24, 2019
@tobiaslohr tobiaslohr added this to the 2.x milestone Jul 24, 2019
@SGD1953
Copy link
Contributor Author

SGD1953 commented Jul 24, 2019

Here is what we have:

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Cartridges - does code download make sense? Probably not so much.

Log Files

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Logs - makes sense to download, maybe we need some more syntactic sugar to i.e. download logs for a day.

Security Log Files

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Securitylogs -see above

Import/Export

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Impex - covered

Temp

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Temp - would be covered if relative to Sites

Realm Data

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Realmdata - would be covered if relative to Sites

Organization Static Content

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Static - would be covered if relative to Sites

Catalog

https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Catalogs/[Catalog name] - would be covered if relative to Sites

Content Images
https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Libraries/[Library Name] - would be covered if relative to Sites

Velocity Templates
https://dgehl-inside-eu01-dw.demandware.net/on/demandware.servlet/webdav/Sites/Dynamic/[Site Name], for example SiteGenesis. - would be covered if relative to Sites

So in my view, yes, relative to Sites would work. Maybe we should separate the root location out into a separate parameter so that we can more easily validate if it is supported.

@tobiaslohr tobiaslohr modified the milestones: 2.1.x, 2.2.x Nov 12, 2019
@tobiaslohr tobiaslohr modified the milestones: 2.2.x, 2.3.x Dec 19, 2019
@tobiaslohr tobiaslohr modified the milestones: 2.3.x, 2.4.x Feb 21, 2020
@tobiaslohr tobiaslohr modified the milestones: 2.4.x, 2.5.x Mar 25, 2020
@tobiaslohr
Copy link
Contributor

We are splitting this into two tickets for better visibility.

  1. instance:export command to run an instance export instance:export command to run an instance export #121
  2. data:download command to download resources Add data:download command to download resources #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants