no-clobber.md (850B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: no-clobber 5 Help: Do not overwrite files that already exist 6 Category: output 7 Added: 7.83.0 8 Multi: boolean 9 See-also: 10 - output 11 - remote-name 12 Example: 13 - --no-clobber --output local/dir/file $URL 14 --- 15 16 # `--no-clobber` 17 18 When used in conjunction with the --output, --remote-header-name, 19 --remote-name, or --remote-name-all options, curl avoids overwriting files 20 that already exist. Instead, a dot and a number gets appended to the name of 21 the file that would be created, up to filename.100 after which it does not 22 create any file. 23 24 Note that this is the negated option name documented. You can thus use 25 --clobber to enforce the clobbering, even if --remote-header-name is 26 specified. 27 28 The --continue-at option cannot be used together with --no-clobber.