Browse Source

rsync: add --delete example (#2595)

Replace --progress by --delete because it is
already shown in 3rd example with options -P
Melwin Kieffer 6 years ago
parent
commit
ebb5439666
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/common/rsync.md

+ 2 - 2
pages/common/rsync.md

@@ -23,9 +23,9 @@
 
 `rsync -ru {{remote_host_name}}:{{remote_folder_location}} {{local_folder_location}}`
 
-- Transfer file over SSH and show progress per file:
+- Transfer file over SSH and delete local files that do not exist on remote host:
 
-`rsync -e ssh --progress {{remote_host_name}}:{{remote_file}} {{local_file}}`
+`rsync -e ssh --delete {{remote_host_name}}:{{remote_file}} {{local_file}}`
 
 - Transfer file over SSH and show global progress: