rsync
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rsync [2022/07/19 20:13] – external edit 127.0.0.1 | rsync [2022/10/21 18:47] (current) – Updated formatting admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Syntax: | Syntax: | ||
| - | rsync -ave ssh user@server: | + | < |
| Example: | Example: | ||
| + | < | ||
| rsync -ave ssh user@server:/ | rsync -ave ssh user@server:/ | ||
| + | #or | ||
| + | rsync -ave "ssh -p 2222" / | ||
| + | </ | ||
| ====== Scenario - Migrating MySQL Server ====== | ====== Scenario - Migrating MySQL Server ====== | ||
| Line 13: | Line 17: | ||
| ===== rsync switches used for sync ===== | ===== rsync switches used for sync ===== | ||
| + | < | ||
| #ssh into current mysql server, and run: | #ssh into current mysql server, and run: | ||
| rsync -avPin --delete / | rsync -avPin --delete / | ||
| Line 22: | Line 27: | ||
| n = dry run (remove the n, for the proper run) | n = dry run (remove the n, for the proper run) | ||
| | | ||
| + | </ | ||
| After than runs. Stop MySQLd on current server, and run the same rsync again. | After than runs. Stop MySQLd on current server, and run the same rsync again. | ||
rsync.1658261600.txt.gz · Last modified: 2022/07/19 20:13 by 127.0.0.1