[GH-ISSUE #43] Change Timestamp String to be Compatible with Unix date Timestamp #42

Closed
opened 2026-02-26 17:44:06 +03:00 by kerem · 7 comments
Owner

Originally created by @NicholasRush on GitHub (Dec 13, 2020).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/43

I have setup an SMB fileserver in an LXC container. My problem is that i cannot use these timestamps in the samba vfs shadow_copy2 module, because that need a 4-digit year string with some "_" separators to be compatible.

An example of this is the following: autohourly_20201213_193822
|
| -> name,"" separator, 4-digit year, 2-digit month, 2-digit day, "" separator, 2-digit hour,
2-digit minute, 2-digit second.

Originally created by @NicholasRush on GitHub (Dec 13, 2020). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/43 I have setup an SMB fileserver in an LXC container. My problem is that i cannot use these timestamps in the samba vfs shadow_copy2 module, because that need a 4-digit year string with some "_" separators to be compatible. An example of this is the following: autohourly_20201213_193822 | | -> name,"_" separator, 4-digit year, 2-digit month, 2-digit day, "_" separator, 2-digit hour, 2-digit minute, 2-digit second.
kerem 2026-02-26 17:44:06 +03:00
Author
Owner

@franklupo commented on GitHub (Dec 14, 2020):

Hi
could i create a parameter that accepts a custom format?

TIMESTAMP_FORMAT = "yyMMddHHmmss" default
TIMESTAMP_FORMAT = "_yyyyMMdd_HHmmss" in your case

best regards

<!-- gh-comment-id:744374671 --> @franklupo commented on GitHub (Dec 14, 2020): Hi could i create a parameter that accepts a custom format? TIMESTAMP_FORMAT = "yyMMddHHmmss" default TIMESTAMP_FORMAT = "_yyyyMMdd_HHmmss" in your case best regards
Author
Owner

@franklupo commented on GitHub (Dec 15, 2020):

Sorry
"could i create a parameter that accepts a custom format?"

<!-- gh-comment-id:745208193 --> @franklupo commented on GitHub (Dec 15, 2020): Sorry "could i create a parameter that accepts a custom format?"
Author
Owner

@NicholasRush commented on GitHub (Dec 15, 2020):

Sorry
"could i create a parameter that accepts a custom format?"

Yes, a parameter that accept a custom format is better than a predefined one. Thank you very much.

<!-- gh-comment-id:745534122 --> @NicholasRush commented on GitHub (Dec 15, 2020): > Sorry > "could i create a parameter that accepts a custom format?" Yes, a parameter that accept a custom format is better than a predefined one. Thank you very much.
Author
Owner

@franklupo commented on GitHub (Dec 16, 2020):

Hi,
the new version is available with the --timestamp-format parameter

Best reagrds

<!-- gh-comment-id:746732464 --> @franklupo commented on GitHub (Dec 16, 2020): Hi, the new version is available with the --timestamp-format parameter Best reagrds
Author
Owner

@NicholasRush commented on GitHub (Dec 16, 2020):

Thank you, that was very fast. I will test this version now.

Best Regards

<!-- gh-comment-id:746894242 --> @NicholasRush commented on GitHub (Dec 16, 2020): Thank you, that was very fast. I will test this version now. Best Regards
Author
Owner

@franklupo commented on GitHub (Jan 5, 2021):

News?

<!-- gh-comment-id:754537120 --> @franklupo commented on GitHub (Jan 5, 2021): News?
Author
Owner

@NicholasRush commented on GitHub (Jan 5, 2021):

It´s running very fine. I think theres a problem in proxmox itself. Sometimes a vm or an lxc container is offline after some snapshots are removed.

<!-- gh-comment-id:754795941 --> @NicholasRush commented on GitHub (Jan 5, 2021): It´s running very fine. I think theres a problem in proxmox itself. Sometimes a vm or an lxc container is offline after some snapshots are removed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#42
No description provided.