From 42550948e07077975c793703e4f58cdd607f7b2a Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 2 Aug 2023 15:05:41 +0000 Subject: [PATCH] delete flag --- rsync.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rsync.md b/rsync.md index a72078c..7603d4f 100644 --- a/rsync.md +++ b/rsync.md @@ -4,7 +4,12 @@ sync everything in //mnt/backup and push to hptrow: rsync -azv -e ssh -r /mnt/backup/ pt@hptrow.me:/mnt/backup/hc ``` +use the --delete flag to force a whole copy instead of incremental backup +``` +rsync -azv --delete -e ssh -r /mnt/backup/ pt@hptrow.me:/mnt/backup/hc +``` + copy remote file to local machine ``` rsync -azv -e ssh ptrowbridge@usmidsap01://home/ptrowbridge/debug.sql //mnt/c/Users/PTrowbridge/Downloads/debug.sql -``` \ No newline at end of file +```