User Tools

Site Tools


rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
rsync [2022/10/21 18:46] – Added non standard ssh port config adminrsync [2022/10/21 18:47] (current) – Updated formatting admin
Line 17: Line 17:
  
 ===== rsync switches used for sync ===== ===== rsync switches used for sync =====
 +<code>
  #ssh into current mysql server, and run:  #ssh into current mysql server, and run:
  rsync -avPin --delete /var/lib/mysql newhost:/var/lib/  rsync -avPin --delete /var/lib/mysql newhost:/var/lib/
Line 26: Line 27:
  n = dry run (remove the n, for the proper run)  n = dry run (remove the n, for the proper run)
  --delete = delete files on target, which were deleted on host since last run.  --delete = delete files on target, which were deleted on host since last run.
 +</code>
 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.txt · Last modified: 2022/10/21 18:47 by admin