1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 16:55:36 +00:00

docs: datetime formatting examples for {now} placeholder, fixes #1822

This commit is contained in:
Thomas Waldmann 2016-11-19 22:04:13 +01:00
parent 3d174aef35
commit d8e806aac1

View file

@ -382,7 +382,10 @@ Examples
# Use short hostname, user name and current time in archive name # Use short hostname, user name and current time in archive name
$ borg create /path/to/repo::{hostname}-{user}-{now} ~ $ borg create /path/to/repo::{hostname}-{user}-{now} ~
$ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%d_%H:%M:%S} ~ # Similar, use the same datetime format as borg 1.1 will have as default
$ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S} ~
# As above, but add nanoseconds
$ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S.%f} ~
.. include:: usage/extract.rst.inc .. include:: usage/extract.rst.inc