Fork me on GitHub

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
synchronizing_disk_images_between_machines [2011/11/16 22:07]
henri [Backing up Sparse Bundle Images Over SSH]
synchronizing_disk_images_between_machines [2011/12/01 23:15]
henri [Copy sparse bundle between machines using rsync.]
Line 5: Line 5:
 /* -- advert disabled -- If you would like the ability to synchronize your backup disk images from your laptop to your backup server while on the move then adding a [[http://​www.o2.co.uk/​broadband/​mobile/​|mobile broadband]] dongle to your laptop is a great option. */  /* -- advert disabled -- If you would like the ability to synchronize your backup disk images from your laptop to your backup server while on the move then adding a [[http://​www.o2.co.uk/​broadband/​mobile/​|mobile broadband]] dongle to your laptop is a great option. */ 
  
-**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. You may [[http://​github.com/​henri/​lbackup_core/​blob/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|view]] or [[http://​raw.github.com/​henri/​lbackup_core/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|download]] the latest available version ​ via [[http://​github.com/​henri/​lbackup_core/​blob/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|github]] ​(links to pre-release version of the script).+**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. You may [[http://​github.com/​henri/​lbackup_core/​blob/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|view]] or [[http://​raw.github.com/​henri/​lbackup_core/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|download]] the latest ​(pre-release version) ​available version via [[http://​github.com/​henri/​lbackup_core/​blob/​master/​etc/​lbackup/​example_backup_config/​resources/​exmaple-scripts/​post-actions/​BACKUP-700-Sync-Sparse-Image-to-Remote-Server.bash|github]].
 \\ \\ \\ \\
  
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
  
 \\ \\ \\ \\