Lines Matching defs:rsync

53  * A ta, rsync or rrdp repository.
55 * a ta, rsync or rrdp repository. Multiple repositories can use the
96 const struct rsyncrepo *rsync;
297 if (rp->rsync)
298 return rp->rsync->state;
316 if (vp != rp->ta && vp != rp->rsync && vp != rp->rrdp)
319 /* for rrdp try to fall back to rsync */
322 rp->rsync = rsync_get(rp->repouri, rp->basedir);
486 rr->basedir = repo_dir(repo, ".rsync", 0);
1055 errx(1, "unknown rsync repo %u", id);
1069 /* clear rsync repo since it failed */
1097 rr->notifyuri, nofetch ? "cache" : "rsync");
1239 /* ... else try RRDP first if available then rsync */
1243 rp->rsync = rsync_get(uri, rp->basedir);
1273 if (rp->rsync == NULL)
1309 } else if (rp->rsync) {
1310 if ((path = strdup(rp->rsync->basedir)) == NULL)
1360 !(rp->rrdp == NULL && rp->rsync == NULL && rp->ta == NULL))
1366 * Return the protocol string "rrdp", "rsync", "https" which was used to sync.
1378 return "rsync";
1384 return "rsync";
1409 /* reset the alarm since code may fallback to rsync */
1414 else if (rp->rsync)
1415 rsync_finish(rp->rsync->id, 0);
1428 if (rp->rsync) {
1430 rsync_abort(rp->rsync->id);
1487 if (strncmp(file, ".rsync/", strlen(".rsync/")) == 0 ||
1701 size_t rsyncsz = strlen(".rsync/");
1707 if (strncmp(fp->file, ".rsync/", rsyncsz) != 0 &&
1712 if (strncmp(fp->file, ".rsync/", rsyncsz) == 0) {
1858 /* no need to keep rsync or ta files */
1881 /* rpki.example.org or .rrdp / .rsync / .ta */
1882 if (strcmp(".rsync", e->fts_name) == 0)
1908 /* .rsync/rpki.example.org/repository */
1910 strlen(".rsync/"));
1917 /* do not remove .rsync and .rrdp */