Fork me on GitHub

Differences

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

synchronizing_disk_images_between_machines [2011/11/16 22:08]
henri [Backing up Sparse Bundle Images Over SSH]
synchronizing_disk_images_between_machines [2011/12/01 23:15] (current)
henri [Copy sparse bundle between machines using rsync.]
Line 23: Line 23:
 Remember that before coping or updating a sparse bundle it is important that you have checked to ensure the images is unmounted on both the source and destination. Also, please note that the online version is not as comprehensive as the full script listed below. Remember that before coping or updating a sparse bundle it is important that you have checked to ensure the images is unmounted on both the source and destination. Also, please note that the online version is not as comprehensive as the full script listed below.
  
-  if [ -d /path/to/my_backup.sparsebundle ] && ! [ -d /Volumes/mybackupimage ] ; then ssh backup@remoteserver "df -h" | head -n 2 ; sleep 5 ; /usr/local/bin/rsync_v3 --rsync-path=/usr/local/bin/rsync_v3 -aNHAXEx --delete --progress --stats --protect-args --fileflags --force-change /path/to/my_backup.sparsebundle backup@remoteserver:/backups/ ; else echo "ERROR! : Source not available, or image is mounted ; fi+  if [ -d /path/to/my_backup.sparsebundle ] && ! [ -d /Volumes/mybackupimage ] ; then ssh backup@remoteserver "df -h" | head -n 2 ; sleep 5 ; /usr/local/bin/rsync_v3 --rsync-path=/usr/local/bin/rsync_v3 -aNHAXEx --delete --progress --stats --protect-args --fileflags --force-change /path/to/my_backup.sparsebundle backup@remoteserver:/backups/ ; else echo "ERROR! : Source not available, or image is mounted." ; fi
  
 \\ \\ \\ \\