I’m considering importing my archive of a couple years of tarball snapshots into a restic repository. Is there any way to create snapshots with a manually-provided timestamp? I’d like to script going through and pulling all my tarballs into restic with their original dates so I end up with a repo like I’d used restic all along
Sure, did you discover restic backup --help
yet? It lists all the options for the backup
command, including:
$ restic backup --help
The "backup" command creates a new snapshot and saves the files and directories
given as the arguments.
Usage:
restic backup [flags] FILE/DIR [FILE/DIR] ...
[...]
--time string time of the backup (ex. '2012-11-01 22:08:41') (default: now)
[...]
2 Likes
Ahh I swear I looked and missed that :-X
Thanks!