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

Backup tgz filenames shouldn't have colons #147

Closed
thomas-anderson-bsl opened this issue Jun 3, 2021 · 2 comments
Closed

Backup tgz filenames shouldn't have colons #147

thomas-anderson-bsl opened this issue Jun 3, 2021 · 2 comments

Comments

@thomas-anderson-bsl
Copy link
Contributor

tar doesn't like dealing with filenames with : characters.
We should remove/replace these, so that tar tf $BACKUP.tgz will work.

For datetime stamp, we could use something like:

from datetime import datetime
datetime.now().replace(microsecond=0).isoformat().replace(":", "-")
@al-jeyapal
Copy link
Collaborator

Delete the colons rather than replacing with a hyphen so that the string remains ISO8601 compliant

datetime.now().replace(microsecond=0).isoformat().replace(":", "")

thomas-anderson-bsl added a commit that referenced this issue Aug 9, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
thomas-anderson-bsl added a commit that referenced this issue Aug 9, 2021
…lons-from-backup-tgz-filename

GH-147: Remove colon character from backup filename
@thomas-anderson-bsl
Copy link
Contributor Author

Resolved by #172

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

No branches or pull requests

2 participants