The Virtuoso EC2 Extension User Interface can be used for backing up and restoring a Virtuoso Database to or from an Amazon S3 bucket.
The following must be done before you proceed, as all are necessary for accessing your Amazon S3 bucket.
The ec2ext VAD was originally written for use with the Virtuoso pre-packaged and pre-configured EC2 AMIs, and thus makes certain assumptions about the configuration. To make this work with an open source or commercial Virtuoso installation on a different AMI, please ensure the following has been done:
virtuoso
" symlink to the Virtuoso binary executable (virtuoso-t
or virtuoso-iodbc-t
) must exist in the directory the database is run/started from.
SafeExecutables=0
" and " DbaExecutables=/bin/tar,/bin/sh
" must to be added to the "Parameters
" section of the Virtuoso Configuration file (virtuoso.ini
).
... [Parameters] ... SafeExecutables=0 DbaExecutables=/bin/tar,/bin/sh ...
restart.sh
" script is only included with the commercial installers.
sh
" shell is available.http://your-ec2-instance-cname/ec2exts
to load the Virtuoso Extensions for Amazon EC2 Images login page and log in as the "dba" user.
http://your-ec2-instance-cname/ec2exts
) click on the "Synchronize now" button to upload the new backup segment.
http://your-ec2-instance-cname/ec2exts
), login and click on the "Restore a Remote Backup" link.
12:46:41 Checkpoint made, log reused 12:46:41 Starting online backup from page 1 to 8875 13:00:04 PL LOG: S3 upload /backup-my-virtuoso/virt-backup1.bp 13:04:06 PL LOG: S3 upload /backup-my-virtuoso/virt-backup-descriptor.ini 13:08:23 Checkpoint made, log reused 13:08:23 Checkpoint made, log reused 13:08:23 Starting online backup from page 1 to 8875 13:20:01 PL LOG: S3 upload /backup-my-virtuoso/virt-backup2.bp 13:20:05 PL LOG: S3 upload /backup-my-virtuoso/virt-backup-descriptor.ini 14:03:33 PL LOG: Starting restore operation. 14:03:33 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-descriptor.ini 14:03:33 PL LOG: Downloading set 0x7CA7-0xD3-0x3C in ./, 2 files 14:03:33 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup1.bp 14:03:56 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup2.bp 14:03:56 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-extra.tgz 14:03:56 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-descriptor.ini 14:03:57 PL LOG: Download complete. 14:35:59 PL LOG: Starting restore operation. 14:35:59 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-descriptor.ini 14:36:00 PL LOG: Downloading set 0x7CA7-0xD3-0x3C in ./, 2 files 14:36:00 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup1.bp 14:36:29 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup2.bp 14:36:30 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-extra.tgz 14:36:30 PL LOG: Downloading s3://backup-my-virtuoso/virt-backup-descriptor.ini 14:36:30 PL LOG: Download complete. 14:36:39 PL LOG: Reassembling new database from backup files. 14:36:43 PL LOG: Reassembly complete - saved as restore-tmp.db 14:36:43 Server received signal 20. Continuing with the default action for that signal. 14:36:43 PL LOG: Executing checkpoint. 14:36:43 Checkpoint made, log reused 14:36:43 PL LOG: The server is now restarting using the restored database. 14:36:48 Checkpoint made, log reused 14:36:48 Server shutdown complete