Differences
This shows you the differences between the selected revision and the current version of the page.
| synchronizing_disk_images_between_machines 2009/11/05 11:08 | synchronizing_disk_images_between_machines 2010/07/16 14:48 current | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| \\ \\ | \\ \\ | ||
| - | **NOTE** : LBackup 0.9.8r2 and later include a similar script as example post-action script. The script below is intended for use as a separate script. If you would like a post action script it is recommended that you start with the example provided with LBackup. | + | **NOTE** : LBackup 0.9.8r2 and later include a similar script as an example post-action script. The script below is intended for use as a standalone script. If you would like a post action script it is recommended that you start with the example bundled within the LBackup install. Utilizing the bundled version of this script has the advantage of full LBackup integration. This means that the built in and custom [[reporting|reporting options]] of LBackup become accessible. |
| \\ \\ | \\ \\ | ||
| Line 20: | Line 20: | ||
| === A One Line Version === | === A One Line Version === | ||
| - | Remember that before coping or update a sparse bundle it is important that you have checked to ensure the images is unmounted. 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 | ||
| Line 100: | Line 100: | ||
| \\ \\ | \\ \\ | ||
| + | ===== Moving the Bundle to Other Servers ===== | ||
| + | |||
| + | The command below will need to modified to your requirements. Essentially, this command is able to sync the disk image between two remote Mac OS X machines. Please keep in mind that this is just one possible approach. | ||
| + | |||
| + | ssh user@src_server.yourdomain.com "/usr/local/bin/rsync_v3 -aNHAXEx --rsync-path=/usr/local/bin/rsync_v3 --delete --progress --stats --protect-args --fileflags --force-change /path/to/src_image.sparsebundle user@dst_server.yourdomain.com:/path/to/this/sparsebundle_backup/ | ||
| + | |||
| + | * Keep in mind that with the command listed above any other items in the destination path will be deleted. | ||
| + | |||
| + | |||
| + | \\ \\ | ||
| ===== Helpful Links ===== | ===== Helpful Links ===== | ||
| Line 105: | Line 115: | ||
| * [[http://en.wikipedia.org/wiki/Sparse_image|Wikipedia : Sparse Images]] | * [[http://en.wikipedia.org/wiki/Sparse_image|Wikipedia : Sparse Images]] | ||
| * [[http://en.wikipedia.org/wiki/Sparse_image#Sparse%20Bundles|Wikipedia : Sparse Bundles]] | * [[http://en.wikipedia.org/wiki/Sparse_image#Sparse%20Bundles|Wikipedia : Sparse Bundles]] | ||
| + | * [[pre_and_post_actions|LBackup Pre and Post Actions]] | ||
| + | * [[http://www.lbackup.org/developer/migrating_backup_sets#relevant_related_notes|Additional rsync options]] , which you may want to add into your version? | ||
| + | \\ \\ | ||