docs/src/push.md

Sat, 20 Apr 2024 12:43:44 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 20 Apr 2024 12:43:44 +0200
changeset 813
06cf17795b86
parent 702
444aa8fe133f
permissions
-rw-r--r--

improve xattr code

- check allocation return value
- xattr_get returns null terminated strings

---
title: 'dav-sync push'
---

**`dav-sync push [-cldrSRM] [-t <tags>] <directory>`**

Pushes all local changes to the server. This uploads all locally modified files and deletes all locally deleted files on the server.

If conflict detection is not disabled, all files that are also modified on the server will be skipped.

**`-c`** Disable conflict detection. This always overwrites files on the server

**`-l`** Lock the repository before accessing it. After `push` completed, the repository is unlocked

**`-d`** Don't lock the repository (default)

**`-t <tags>`** Only sync files that match the tag filter expression

**`-r`** Remove resources not matching the tag filter

**`-S`** Save the previous file version, before replacing it

**`-R`** Upload files, that were deleted on the server since last sync, but still locally available

**`-M`** Upload files, that were modified on the server since last sync

mercurial