atzanteol, (edited )

rsync is ubiquitous and the standard for this type of job.

rsync -rav --delete --progress --exclude=ignore_dir source-dir user@host:remote_dir

SSH is used to connect. Ownership, symlinks, etc. are preserved. Add more “excludes” to filter out more directories. Do your first run without " delete" to make sure things are going where you want.

If you want “backups” I would suggest something more sophisticated. But for just cloning this is the way.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #