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 Timestamp Support to fs.backup #611

Closed
derks opened this issue Sep 30, 2021 · 1 comment
Closed

Add Timestamp Support to fs.backup #611

derks opened this issue Sep 30, 2021 · 1 comment

Comments

@derks
Copy link
Member

derks commented Sep 30, 2021

Would be nice to (optionally) support timestamps in the backup file/directory:

from datetime import datetime
suffix = '.bak'
timestamp = datetime.now().strftime('%Y-%m-%d-%H:%M:%S')
suffix = f'{suffix}-{timestamp}'
@derks derks added this to the 3.0.6 Stable milestone Sep 30, 2021
@derks derks modified the milestones: 3.0.6 Stable, 3.0.8 Stable Dec 18, 2021
@derks derks modified the milestones: 3.0.8 Stable, 3.0.10 Stable Aug 18, 2022
muddi900 added a commit to muddi900/cement that referenced this issue Nov 26, 2022
muddi900 added a commit to muddi900/cement that referenced this issue Dec 16, 2022
added my name to contributors

timestamp is now a kwarg. The format is also done through a kwarg
derks added a commit that referenced this issue Dec 27, 2023
@derks
Copy link
Member Author

derks commented Dec 27, 2023

This is merged to main and will be released with stable/3.0.10.

@derks derks closed this as completed Dec 27, 2023
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

1 participant