notes/rsync.md

16 lines
436 B
Markdown
Raw Permalink Normal View History

2023-03-01 09:09:33 -05:00
sync everything in //mnt/backup and push to hptrow:
```
rsync -azv -e ssh -r /mnt/backup/ pt@hptrow.me:/mnt/backup/hc
```
2023-08-02 11:05:41 -04:00
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
```
2023-03-01 09:09:33 -05:00
copy remote file to local machine
```
rsync -azv -e ssh ptrowbridge@usmidsap01://home/ptrowbridge/debug.sql //mnt/c/Users/PTrowbridge/Downloads/debug.sql
2023-08-02 11:05:41 -04:00
```