Forum archive
Move Trac appliance data to EBS volume
Hello,
I would like to thank you for the appliances. They are huge time savers.
I have setup a trac appliance on Amazon EC2 using the Turnkey Hub with the new Ubuntu 11.04 appliances that just came out.
I've attached a 1GB EBS volume to it and used the following commands to mount the partition and create a symblic link.
ebsmount-manual --format=ext3 /dev/sdf and ln -s /media/ebs/vbd-2160/a1b2 /vol
Now, I would like to move the web root, trac data, and repositories to the EBS volume in case something ever happens to the instance.
What steps would I take to do so?
I would assume that moving the /var/www would be the following:
# make the new doc root for apache mkdir /vol/var # move instance doc root to new doc root area mv /var/www /vol/var/www # make the new doc root for apache ln -s /vol/var/www /var/www # restart apache so new doc root is used /etc/init.d/apache2 restart
If that is correct, I would like to do the same for the trac data and database, and the repository directories.
But why not just use TKLBAM to backup your data? It would be just as effective as a backup solution and much less mucking around. It would also make restoration (should something go wrong) easier too.