docs/src/sync-list-versions.md

Wed, 24 Jul 2024 23:45:31 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 24 Jul 2024 23:45:31 +0200
changeset 826
b6e9fd3f1951
parent 702
444aa8fe133f
permissions
-rw-r--r--

fix dav add-repo crash in case .dav/config.xml doesn't exist

---
title: 'dav-sync list-versions'
---

**`dav-sync list-versions [-s <syncdir>] <file>`**

Lists all available versions of a SyncDirectory file. Example:

	$ dav-sync list-versions test.txt
	name: 1576420562-69ba29c77659c2db
	lastmodified: Sun, 15 Dec 2019 10:39:30 GMT
	url: https://example.com/webdav/.history/157/1576420562-69ba29c77659c2db

	name: 1576420572-b6a1862b0b1c04e6
	lastmodified: Sun, 15 Dec 2019 11:12:28 GMT
	url: https://example.com/webdav/.history/157/1576420572-b6a1862b0b1c04e6

	name: 1576420613-8b1260a7a6943580
	lastmodified: Sun, 15 Dec 2019 15:33:06 GMT
	url: https://example.com/webdav/.history/157/1576420613-8b1260a7a6943580

The name of a version can be used to restore a previous file version with the [dav-sync restore][1] command.

**`-s <syncdir>`** SyncDirectory for this file

[1]: ./restore.html

mercurial