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

[enhacement] Pad number in name with 5-6 zeros. #36

Open
aensidhe opened this issue Jul 10, 2020 · 2 comments
Open

[enhacement] Pad number in name with 5-6 zeros. #36

aensidhe opened this issue Jul 10, 2020 · 2 comments

Comments

@aensidhe
Copy link

Let's take that name: mimir/private|autosnap_2020-07-09_22:45:01_frequently.zstream.gz.pgp.vol1000.

Format mimir/private|autosnap_2020-07-09_22:45:01_frequently.zstream.gz.pgp.vol_000_001_000 is more readable and sortable.

image

@someone1
Copy link
Owner

someone1 commented Aug 3, 2020

Is there a use-case for this? I don't want to assume I know the number of volumes a job may take, and the name is really arbitrary as the manifest is what really matters. The list command should hopefully give you the data/insight you need regarding a backup set.

@aensidhe
Copy link
Author

aensidhe commented Aug 7, 2020

Use case is to provide sorted set. So, in file list it would be not "1, 10, 100, 1000, 2", but "0001, 0002,etc".

I believe zfs list gives you size of snapshot. You can use that to get maximum amount of chunks you will have.

In any case, nine digits proposal with default size of 200MB is enough for backing up 200PB. You can add the digits more and you're fine with exabytes

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