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

Feature Request: Download options and progress #48

Open
Firestorm980 opened this issue Oct 12, 2018 · 3 comments
Open

Feature Request: Download options and progress #48

Firestorm980 opened this issue Oct 12, 2018 · 3 comments

Comments

@Firestorm980
Copy link

Ideas for some additional options/flags:

  • Set a save location for the download, if you want it elsewhere than the cache for extracting assets manually (--directory)
  • Only download files or database. (--only-files, --only-db)

Additionally, a progress bar should be added so you know how far along your download is. Especially since some of these snapshots can be many gigabytes in size, it can be beneficial for the user to see how far along the download is.

@tlovett1
Copy link
Member

I can see how these things would be useful but it would prevent WP Snapshots from completing a pull if you only had files or the db. At that point, it's really just storage which is solved by many other tools.

@Firestorm980
Copy link
Author

I agree, it could be problematic for a pull.

The thought is to add those options to the download command. It could solve some scenarios:

  • No longer have to go looking for files if they're in a directory user specifies (in practice, this could be a symlink or similar back to the cache in .wpsnapshots). Allows the possibility to stay more organized with project files in a single location, don't have to look up an ID matching a snapshot.
  • Make it easier to clean up old snapshots
  • Project is already set up and you only need a content/database update or files in the snapshot are out of date

These are probably more edge case scenarios but might still be helpful for completeness.

It occurs to me that download progress should probably be a separate issue from the flags.

@kdo
Copy link

kdo commented Jan 29, 2020

I was going to ask if there was a way to pull the DB only!

I'm often in the scenario where the project is already setup and I don't need the files but may need a fresher DB.

Thanks!

@jeffpaul jeffpaul added this to the Future Release milestone Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants