-
Notifications
You must be signed in to change notification settings - Fork 7
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
Include timestamp and userid in export file name #430
Comments
This was done to reduce complexity iirc As you export your own data from the web UI then at least within a user's own files there is no confusion to whose export it is The date timestamp is also aleady available in files |
@Pytal This feature would actually be useful when users downloads the exported file to desktop for backup purpose. User can run export job once a month (from multiple accounts) and store it locally. By including userid and timestamp it will be clear for user when the export was performed and to what user. |
For that use case the |
@Pytal We want to offer this feature to all users in our NC instance, so manual occ + scp would not work in this case. |
Any thoughts on this @come-nc? |
@Pytal We started working on this issue for solving our use case. Let me know if you want me to create a PR here with this feature. This is still in draft, as we are testing and evaluating for any bugs |
|
@come-nc Thank for your review.
Yes, it made more sense to export the files into a specific folder rather than user's root folder. As we are creating multiple export files
I agree that this way exports take up space when frequently exported. We have two options, we can give auto-pruning setting to user to only retain latest 3 exports or we could warn the user about existing export. The reason why we feel using a constant name is a bad idea because:
I do understand that users have the option to name the file while downloading, but it is better UX if we explicitly provide them with all relevant info in the filename itself. This could especially be useful when migrating from one NC instance to other.. In fact we only wanted to add a
Thanks for pointing this out. I have corrected this. I appreciate your feedback and would be happy to discuss more about it |
While hardcoding the folder name is not a good idea, not exporting to the user's root folder is a very sensible thing to do because you cannot exclude single files from syncing. Hence the desktop client will try to sync the exported file as soon as it can. There is no way to stop it but to pause syncing completely. Moving the exported file to some desktop should not be forced on the user. |
It would be interesting to add userid and timestamp to exported filename. This will give clarity to users when the file was exported and for which account.
I see that we already have this behavior with
occ user:export
command, where export file name has both userid and timestamp. Is there any reason why this is not replicated with frontend export job?The text was updated successfully, but these errors were encountered: