<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>theootz dot com &#187; Random</title> <atom:link href="http://www.hardeep.me/category/random/feed/" rel="self" type="application/rss+xml" /><link>http://www.hardeep.me</link> <description>tech, programming, rants and randomonium!</description> <lastBuildDate>Thu, 20 Jan 2011 02:32:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <image><link>http://www.hardeep.me</link> <url>http://theootz.com/wp-content/cbnet-favicon/favicon.gif</url><title>theootz dot com</title> </image> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Your complaint was super effective! CRTC is still crap though, and so is traffic shaping.</title><link>http://www.hardeep.me/2010/11/your-complaint-was-super-effective-crtc-is-still-crap-though-and-so-is-traffic-shaping/</link> <comments>http://www.hardeep.me/2010/11/your-complaint-was-super-effective-crtc-is-still-crap-though-and-so-is-traffic-shaping/#comments</comments> <pubDate>Tue, 16 Nov 2010 23:34:40 +0000</pubDate> <dc:creator>theootz</dc:creator> <category><![CDATA[Random]]></category> <category><![CDATA[Rants]]></category> <category><![CDATA[bell]]></category> <category><![CDATA[complaint letter]]></category> <category><![CDATA[crtc]]></category> <category><![CDATA[government]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[ISP]]></category> <category><![CDATA[traffic management]]></category><guid isPermaLink="false">http://www.theootz.com/?p=3822</guid> <description><![CDATA[Woah...WOAH.  Ok so, a few weeks ago (on a whim really, and upset that after paying for hotfile premium I still got shit speeds) I sent out a complaint to the CRTC stating that  bell throttles websites that are not listed in their traffic management  protocols/documentation online (which is essentially not allowed). I finally got a response today :oNo related posts.]]></description> <content:encoded><![CDATA[<p>Woah&#8230;WOAH.  Ok so, a few weeks ago (on a whim really, and upset that after paying for hotfile premium I still got shit speeds) I sent out a complaint to the CRTC stating that  bell throttles websites that are not listed in their traffic management  protocols/documentation online (which is essentially not allowed). I finally got a response today <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /></p><p>They stated that they stick by the reasoning that their traffic  management hardware/software can sometimes falsely identify traffic from  sources as being P2P traffic even though it isn&#8217;t. This can result in  some traffic being throttled even when it shouldn&#8217;t be. Specifically:</p><blockquote><p>As the Company has consistently stated, it does not intentionally shape any non-P2P file-sharing traffic as part of its network management practices and, as such, there are no websites that the Company “targets” for traffic shaping.  However, as the Company has stated in the past, the deployment of any network technology such as technical ITMPs may have some unintended consequences and the Company encourages its customers to bring such unintended consequences to its attention in order to resolve them.</p></blockquote><p>BUT, they&#8217;ve done extensive testing with some of the specific sites I mentioned to them and were able to replicate the issue. Specifically hotfile.com, using both free and premium accounts.</p><blockquote><p>As a result of the complaint letter, the Company has performed various tests in an attempt to recreate the reported problem.  As accurately indicated in the complaint letter, www.hotfile.com is a storage type of site that leverages http (web) direct downloading mechanisms for the sharing of files.  The site offers two types of access, a free access and a premium (paid for subscription) access.  Whereas the free access has limitations in terms of the number of concurrent downloads as well as throughput/speed that can be reduced if the site www.hotfile.com is congested, the premium service is not limited in concurrent downloads or throughput/speed as a result of congestion at the site itself.</p></blockquote><p>So they admit something is messed up for &#8216;some&#8217; of the traffic. But the interesting part is they&#8217;ve claimed to already be rolling out a solution <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> I&#8217;m wondering if this is the result of many complaints, or specifically this one, but still interesting. In the following quote, DPI is Deep Packet Inspection devices. And to give context, my original complaint was sent to them on the 19th of October, so it definitely gave them time to react to it.</p><blockquote><p>In order to address the issue of inadvertent shaping of www.hotfile.com traffic, there was a requirement to update the signatures used in the various DPI platforms used by the Company.  A solution was implemented for the vast majority of the Company’s DPI devices on 2 November 2010 and a second solution for the remaining DPI devices will be implemented by 30 November 2010.  As such, www.hotfile.com traffic should no longer be shaped during peak hours after the 30 November 2010.</p></blockquote><p>So it looks like ISPs don&#8217;t want to mess with whatever the CRTC deems they should be doing, once it&#8217;s been established. The issue is the CRTC giving in so much to ISPs when they lobby for change. UGH.</p><p>Also DPI devices freak me out. EVERY packet that leaves from your computer to go to anywhere else, encrypted or not, is inspected by these machines. They look at the actual CONTENTS of the packets to determine what type of traffic they are. It&#8217;s like having a packet sniffer constantly monitoring your connection -.-</p><p>So what else does the CRTC have planned for our internet? Why, more control for the ISPs and government of course and screwing us over! YAY&#8230;&#8230;..</p><p>Currently we&#8217;ve got this wonderful issue with <a href="http://thetyee.ca/Mediacheck/2010/11/16/BigBrotherInternetLaws/">FURTHER tracking of what you do on the internet</a>. And just for kicks, lets <a href="http://openmedia.ca/meter">give the ISPs even MORE control over how much they can limit our bandwidth</a>. Unlimited internet? NOPE. Rogers already doesn&#8217;t allow this, and bell charges an extra $30/month for unlimited bandwidth on their current packages. Think of our cell phone plans. $30/month for a measly 1 or 2gb or whatever the hell it is that they offer. And then charging a RIDICULOUS amount of money per additional MEGABYTE. Now imagine that happening to your internet connection on the desktop too. Hell you&#8217;re probably already in that position. Imagine it being worse. Ugh&#8230;</p><p>*edit*<br /> Thought it might be useful to include my original complaint sent to the <a href="http://www.crtc.gc.ca/rapidsccm/register.asp?lang=e">CRTC</a> as well. If nothing else, could serve as a template for throttling for other sites and such. If they&#8217;re gonna throttle P2P traffic then they damned well stick to nothing but that only.</p><p>If you want to try and get throttling changed at all&#8230;then complain to the CRTC, your local government officials, whatever. Hell, complain to every government official you can get the contact info for even <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p><blockquote><p> This complaint is in regard to Bell Internet Services and their Internet Traffic Management Practices.</p><p>In January and February 2010, the CRTC followed up with several Canadian ISPs in order to ensure consumers have access to the information they need to make informed choices about the Internet services they purchase. Specifically, the Commission required that several ISPs more prominently display information about their ITMPs on their websites, marketing materials, and terms of service.</p><p>This is currently NOT the case with Bell&#8217;s Internet Services! Bell has decided to throttle (i.e. lower the bandwidth) on websites beyond only P2P (peer to peer) traffic as stated on their &#8220;Network Management&#8221; web page http://internet.bell.ca/index.cfm?language=en&#038;method=content.view&#038;content_id=12119</p><p>An example of these websites includes HOTFILE.COM.</p><p>This is a well known issue amongst it&#8217;s customers, but such practices are not at all mentioned on any of their websites, marketing materials, terms of service or acceptable use policies.</p><p>Their terms of service http://internet.bell.ca/index.cfm?method=content.view&#038;category_id=550&#038;content_id=11013 has several locations in which they mention the quality and speed of service one should expect:</p><p>1) Section 6: &#8220;Service&#8221; in this case refers to the internet service I have chosen from their available plans. There is no mention of the service being affected by using a particular website here.</p><p>2) Section 12: Here, they explain how they are not responsible for bottlenecks somewhere along the connection between my local system and a remote system. However this is a well known issue that affects all its customers, and ONLY their customers. Customers on competing ISPs (such as Rogers) have no such issues with the mentioned website. Also, the speeds obtained and the times for which the speeds are at a lower rate correspond to their P2P traffic management practices.</p><p>Further down the Terms of Service page is their Acceptable Use Policy. There is one section in particular which seems relevant:</p><p>1) Under the GENERAL heading, it lists actions which are prohibited from being committed while using their Service. In particular, &#8220;Restricting or inhibiting any other user from using or enjoying the Internet, impairing the operations or efficiency of the Service or creating an unusually large burden on our networks, or otherwise generating levels of Internet traffic sufficient to impede other users’ ability to transmit or receive information.&#8221;</p><p>This may be a viable reason for restricting the internet connection speed of a single individual. However, this is not the case. Connection speeds to the web services and web sites I have mentioned are throttled for everyone, regardless of how much bandwidth they use or otherwise.</p><p>It is important to note that HOTFILE.COM is not a P2P service. It is a direct download over HTTP, using standard ports. It should not be throttled according to their own practices. Also, having a premium account with the HOTFILE.COM service does not matter &#8211; Bell is actively throttling the connection to this website as a whole.</p><p>I believe Bell should be required to specify which websites it throttles on their Network Management website in order to allow customers to make truly informed decisions.</p><p>Links:<br /> 1) http://www.dslreports.com/forum/r24012235-Hotfile-IS-throttled. This page shows screen captures comparing other direct download services and their speeds, with speeds from HOTFILE.com while using a Bell internet service connection. The speeds achieved are at most 256kbit/s &#8211; in line with their P2P traffic management practices.</p><p>2) http://www.dslreports.com/forum/r24729541-So-Hotfile-is-throttled-During-What-Times Customers have found that the times correspond to the times used for their P2P traffic management practices.</p></blockquote><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.hardeep.me/2010/11/your-complaint-was-super-effective-crtc-is-still-crap-though-and-so-is-traffic-shaping/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>An experiment in 3D Max :o</title><link>http://www.hardeep.me/2010/10/an-experiment-in-3d-max/</link> <comments>http://www.hardeep.me/2010/10/an-experiment-in-3d-max/#comments</comments> <pubDate>Sat, 09 Oct 2010 03:49:05 +0000</pubDate> <dc:creator>theootz</dc:creator> <category><![CDATA[Design]]></category> <category><![CDATA[Random]]></category> <category><![CDATA[3d max]]></category> <category><![CDATA[adobe]]></category> <category><![CDATA[animation]]></category> <category><![CDATA[Compositing]]></category> <category><![CDATA[design]]></category> <category><![CDATA[global illumination]]></category> <category><![CDATA[photoshop]]></category> <category><![CDATA[post processing]]></category> <category><![CDATA[premiere]]></category> <category><![CDATA[projects]]></category> <category><![CDATA[test]]></category> <category><![CDATA[video]]></category> <category><![CDATA[youtube]]></category><guid isPermaLink="false">http://www.theootz.com/?p=3797</guid> <description><![CDATA[Just an experiment in 3D Studio Max in texturing, lighting, micro triangle modeling and compositing.Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-posting-test/' rel='bookmark' title='Permanent Link: video+cross posting test'>video+cross posting test</a></li><li><a href='http://www.hardeep.me/2010/02/da-stank-bank-uploader/' rel='bookmark' title='Permanent Link: Da Stank Bank &#8220;Uploader&#8221;'>Da Stank Bank &#8220;Uploader&#8221;</a></li><li><a href='http://www.hardeep.me/2010/03/da-stank-bank-uploader-progress/' rel='bookmark' title='Permanent Link: Da Stank Bank Uploader &#8211; progress!'>Da Stank Bank Uploader &#8211; progress!</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Messing around in 3d max&#8230;haven&#8217;t used it in so long <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> (see image to right, and video at end)</p><div id="attachment_3800" class="wp-caption alignright" style="width: 310px"><a href="http://www.theootz.com/wp-content/uploads/2010/10/tree-front-high-res-edit.png"><img class="size-medium wp-image-3800" title="Tree - Full Render" src="http://www.theootz.com/wp-content/uploads/2010/10/tree-front-high-res-edit.png" alt="Tree - Full Render" width="300" height="168" /></a><p class="wp-caption-text">Click to view full image</p></div><p>Just an experiment in some things. For the image:</p><ul><li>Texturing<ul><li>This failed :/ I wanted to try to make the tree look as realistic as possible. Unfortunately, the texture I used was too low of a resolution and I couldn&#8217;t get the bump map to work out the way I wanted. Also, I couldn&#8217;t figure out how to properly texture the vines. UGH</li></ul></li><li>Lighting<ul><li>I think this turned out ok <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I wanted to make the tree blend in with the background. I should have changed the angle of the lighting a bit but it&#8217;s not bad I think. Also messing around with HDRI maps, and global illumination.</li></ul></li><li>Modeling<ul><li>Modeling of the tree, and the vines. Mostly trying to get micro-triangle modeling to work&#8230;worked out decently for the vines &#8211; couldn&#8217;t get it to work at all for the tree <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></li></ul></li><li>Compositing<ul><li>Getting the tree to blend in with the background and not look out of place. Pretty much failed here too lol</li></ul></li></ul><div id="attachment_3810" class="wp-caption alignright" style="width: 310px"><a href="http://www.theootz.com/wp-content/uploads/2010/10/tree-front-pre-edit.jpg"><img class="size-medium wp-image-3810" title="Tree - Pre photoshop" src="http://www.theootz.com/wp-content/uploads/2010/10/tree-front-pre-edit-300x168.jpg" alt="Tree - Pre photoshop" width="300" height="168" /></a><p class="wp-caption-text">This is what the image looked like before I edited it in photoshop...</p></div><p>The video was just to see how it the global illumination would hold up in an animation. Some methods end up producing a lot of weird artifacts once you start trying to animate and such. I still have to try to build a scene and move things around inside of it instead of just the camera and see how that turns out. I also did a small bit of post processing on the video &#8211; added some film grain, color correcting, and other little things here and there. Since I rendered the video at a very odd resolution, Youtube decided to sample it down to an even lower res. Meh. The video download probably looks a bit better.</p><p>Video: <a href="http://www.theootz.com/wp-content/uploads/2010/10/postprocv2.flv">Download</a></p><p><a href="http://www.hardeep.me/2010/10/an-experiment-in-3d-max/"><em>Click here to view the embedded video.</em></a></p><p><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/'>Back to list</a></p><fieldset class='dataset'><legend>Details of 3D Studio Max - Tree Test</legend><dl><dt>Date Started</dt><dd>October 7, 2010</dd><dt>Description</dt><dd><p>See description here: http://www.theootz.com/2010/10/an-experiment-in-3d-max/</p><br /><p>Full image: http://www.theootz.com/wp-content/uploads/2010/10/tree-front-high-res-edit.png</p><br /><p>Video link: http://www.theootz.com/wp-content/uploads/2010/10/postprocv2.flv</p></dd><dt>Main Link</dt><dd><a class='projectmanager_url' href='http://http://www.theootz.com/2010/10/an-experiment-in-3d-max/' target='_blank' title='http://www.theootz.com/2010/10/an-experiment-in-3d-max/'>http://www.theootz.com/2010/10/an-experiment-in-3d-max/</a></dd><dl class='uri '></dl></dl></fieldset><p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-posting-test/' rel='bookmark' title='Permanent Link: video+cross posting test'>video+cross posting test</a></li><li><a href='http://www.hardeep.me/2010/02/da-stank-bank-uploader/' rel='bookmark' title='Permanent Link: Da Stank Bank &#8220;Uploader&#8221;'>Da Stank Bank &#8220;Uploader&#8221;</a></li><li><a href='http://www.hardeep.me/2010/03/da-stank-bank-uploader-progress/' rel='bookmark' title='Permanent Link: Da Stank Bank Uploader &#8211; progress!'>Da Stank Bank Uploader &#8211; progress!</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.hardeep.me/2010/10/an-experiment-in-3d-max/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <enclosure url="http://www.theootz.com/wp-content/uploads/2010/10/postprocv2.flv" length="1265343" type="video/x-flv" /> </item> <item><title>Your site, saved and backed up on the S3 cloud!</title><link>http://www.hardeep.me/2010/03/your-site-saved-and-back-up-on-the-s3-cloud/</link> <comments>http://www.hardeep.me/2010/03/your-site-saved-and-back-up-on-the-s3-cloud/#comments</comments> <pubDate>Sat, 20 Mar 2010 18:56:02 +0000</pubDate> <dc:creator>theootz</dc:creator> <category><![CDATA[Random]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[Amazon]]></category> <category><![CDATA[amazon s3]]></category> <category><![CDATA[backup scripts]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[online backup]]></category> <category><![CDATA[online sync]]></category> <category><![CDATA[projects]]></category> <category><![CDATA[script]]></category> <category><![CDATA[server backups]]></category> <category><![CDATA[theootz]]></category><guid isPermaLink="false">http://www.theootz.com/?p=226</guid> <description><![CDATA[<p>I got sick of having to do backups manually and then manually saving them somewhere&#8230;then I wondered if it&#8217;d be possible to use my S3 service to back up my website? I mean, I&#8217;m already using it as a content distribution system but having a full backup of all files + databases would be nice too!</p><h2>What You Need</h2><p>You&#8217;ll need PHP, bash, CRON access and python to get this working. And given the bash/cron requirements, that also means it assumes you&#8217;re running a *nix based server. It&#8217;s probably possible to get the requirements down, but I just wanted to[&#8230;] <a href="http://www.hardeep.me/2010/03/your-site-saved-and-back-up-on-the-s3-cloud/" class="read_more">read more</a></p>No related posts.]]></description> <content:encoded><![CDATA[<p>I got sick of having to do backups manually and then manually saving them somewhere&#8230;then I wondered if it&#8217;d be possible to use my S3 service to back up my website? I mean, I&#8217;m already using it as a content distribution system but having a full backup of all files + databases would be nice too!</p><h2>What You Need</h2><p>You&#8217;ll need PHP, bash, CRON access and python to get this working. And given the bash/cron requirements, that also means it assumes you&#8217;re running a *nix based server. It&#8217;s probably possible to get the requirements down, but I just wanted to get something done quick and it&#8217;s what I came up with.</p><h2>The Files</h2><h4>backup.sh</h4><p>First up is the bash script (based on <a href="http://www.howtogeek.com/wiki/Tweaking_a_Dedicated_Virtual_Web_Server#Backups">this one</a>) that does most of the work. It will tar+gzip all your site files, export your database(s), and remove old backup files (+5 days old) when necessary. You should only really have to edit the top part of the script. Make sure you remember what you set your <span style="text-decoration: underline;">BACKUP_DIR</span> and <span style="text-decoration: underline;">FILES_DIR</span> to &#8211; you&#8217;ll need them in other scripts later on.</p><pre class="brush: bash; title: ;">
#!/bin/sh

# EDIT THIS PART ------------------
# where all these backup scripts are stored
BACKUP_DIR=/home/theootz/backups

# where you want to keep all the actual backup folders
FILES_DIR=/home/theootz/backups/files

# where all your html files reside
HTML_DIR=/home/theootz/public_html

# your MySQL database name, username and password
SQL_USER1=myusername1
SQL_PASS1=mypass1
SQL_DB1=mydb1

# a second database
# Uncomment these lines if you want to back up a second database.
# Also uncomment the line specified below!
# You can also add more databases and follow the same format.
#SQL_USER2=myusername2
#SQL_PASS2=mypass2
#SQL_DB2=mydb2
# STOP EDITING ------------------

THEDATE=`date +%Y-%m-%d_%H-%M-%S`

mkdir -p $BACKUP_DIR/files

mysqldump -u${SQL_USER1} -p${SQL_PASS1} ${SQL_DB1} &gt; ${FILES_DIR}/${THEDATE}_db1backup.sql

# Uncomment the line below if have a second database to back up
#mysqldump -u${SQL_USER2} -p${SQL_PASS2} ${SQL_DB2} &gt; ${FILES_DIR}/${THEDATE}_db2backup.sql

tar -cf ${FILES_DIR}/${THEDATE}_site.tar ${HTML_DIR}
gzip ${FILES_DIR}/${THEDATE}_site.tar

find ${FILES_DIR}/*site* -mtime +5 -exec rm {} \;
find ${FILES_DIR}/*db* -mtime +5 -exec rm {} \;
</pre><h4>backup_upload.py</h4><p>Next is the Python script to upload the files. It uses a PHP library that I&#8217;ll give more information on below.</p><pre class="brush: python; title: ;">
import sys
import os

########## Make sure these values match the ones you set in your shell script!
BACKUP_DIR = &quot;/home/theootz/backups&quot;
FILES_DIR = &quot;/home/theootz/backups/files&quot;

# this needs to be changed to reflect your settings on your s3 account
S3_BUCKET = &quot;theootz&quot;
S3_FOLDER = &quot;mysite/backups&quot;
##########

j = os.path.join
fname = os.path.basename(sys.argv[1])
cmdstr = j(BACKUP_DIR, &quot;s3.php&quot;) + &quot; put &quot; + \
    j(FILES_DIR, fname) + &quot; &quot; + \
    j(S3_BUCKET, j(S3_FOLDER, fname.split(&quot;_&quot;)[-1]))

os.system(cmdstr)
</pre><h4>PHP S3</h4><p>The python script uses a PHP library to do all the S3 uploading work. The original is available <a href="http://edoceo.com/creo/phps3tk">here</a>.</p><p>I had to edit a few paths in the php library to get it to work, so if you want to download my version it&#8217;s available here:</p> <a href="http://www.hardeep.me/downloads/PHP+Amazon+S3+Library" title="Downloaded 124 times">PHP Amazon S3 Library</a> - Based on http://edoceo.com/creo/phps3tkA PHP library to access and work with Amazon S3<p>Regardless of which one you pick, make sure you open and edit the s3.php file! You&#8217;ll need to put your S3 keys in there (near the top of the file). It will look something like this:</p><pre class="brush: php; title: ;">
// S3_CONF file
$aws_key = null;
$aws_secret = null;
</pre><p>You&#8217;ll want to put your access and secret keys there as strings, as follows:</p><pre class="brush: php; title: ;">
// S3_CONF file
$aws_key = &quot;my access key here&quot;;
$aws_secret = &quot;my secret key here&quot;;
</pre><h2>How To Get It All Working?</h2><p>Ok, so you&#8217;ve got the files. Now upload them to your web server to your <span style="text-decoration: underline;">BACKUP_DIR</span> folder (whatever you choose it as, I picked /home/theootz/backups). Finally, take the files from the the PHP S3 library and put them in your <span style="text-decoration: underline;">BACKUP_DIR</span> as well. This should leave you with the following files in a single folder:</p><ul><li>backup.sh</li><li>backup_upload.py</li><li>s3sync.php</li><li>s3.php</li><li>libs3.php</li><li>libaws.php</li></ul><p>I&#8217;m pretty sure most of the files from the S3 library aren&#8217;t needed but once again not something I bothered to check.</p><p>Now you&#8217;ll want to enable execution for all our scripts. You can do this by running the following commands while in your <span style="text-decoration: underline;">BACKUP_DIR</span> folder:</p><pre class="brush: bash; title: ;">
chmod u+x backup.sh
chmod u+x backup_upload.py
chmod u+x s3.php
</pre><p>At this point, you can go ahead and run backup.sh and see if everything worked. If it did, then we can set up the cron jobs to have this all work automatically for us <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>You&#8217;ll want to add two entries to cron. The first entry will run our backup.sh on a daily basis for us. This will give us 5 days worth of backups at any one point. The second script will upload our latest backup to the S3 service, replacing whatever is already there.</p><pre class="brush: plain; title: ;">
1       1       *       *       *       /path/to/BACKUP_DIR/backup.sh
1       1       *       *       *       find /path/to/FILES_DIR/* -mtime 0 -exec python /path/to/BACKUP_DIR/backup_upload.py '{}' \;
</pre><p>Make sure you edit the paths to reflect the way you have it configured for your system! For example, my cron jobs look like this:</p><pre class="brush: plain; title: ;">
0       0       *       *       *       /home/theootz/backups/backup.sh
0       0       *       *       0       find /home/theootz/backups/files/* -mtime 0 -exec python /home/theootz/backups/backup_upload.py '{}' \;
</pre><h2>Done!</h2><p>And that&#8217;s it <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Your website along with databases and other content will now be backed up daily to the server itself, and uploaded to your S3 account weekly. If you wanna be super extra paranoid you can download the backups from the <span style="text-decoration: underline;">FILES_DIR</span> yourself or <a href="http://www.howtogeek.com/wiki/Tweaking_a_Dedicated_Virtual_Web_Server#Sync_Backups_Off-Site_With_Rsync">use rsync</a> or something similar to automate that as well. One idea is perhaps sending it to your e-mail &#8211; use that g-mail space for something right? <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p><p>Hope that&#8217;s some help to someone <img src='http://www.hardeep.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.hardeep.me/2010/03/your-site-saved-and-back-up-on-the-s3-cloud/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>video+cross post test, second attempt</title><link>http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/</link> <comments>http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/#comments</comments> <pubDate>Tue, 16 Mar 2010 10:26:39 +0000</pubDate> <dc:creator>theootz</dc:creator> <category><![CDATA[Random]]></category> <category><![CDATA[test]]></category> <category><![CDATA[video]]></category> <category><![CDATA[youtube]]></category><guid isPermaLink="false">http://www.theootz.com/?p=186</guid> <description><![CDATA[<p>Alrighty, here&#8217;s another attempt at cross posting to facebook + twitter + tumblr from my blog. Previously I had my posts being pushed to tumblr and twitter, and then tumblr pushing to facebook. But this made the facebook link back to tumblr and depending on the type of post may not display all my text on FB itself. So now I&#8217;m trying to get WP to push directly to FB&#8230;</p><p>And of course an embed test.</p><p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-posting-test/' rel='bookmark' title='Permanent Link: video+cross posting test'>video+cross posting test</a></li><li><a href='http://www.hardeep.me/2010/03/speed-projects-and-features-oh-my/' rel='bookmark' title='Permanent Link: Speed, projects and features &#8211; oh my!'>Speed, projects and features &#8211; oh my!</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol></p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-posting-test/' rel='bookmark' title='Permanent Link: video+cross posting test'>video+cross posting test</a></li><li><a href='http://www.hardeep.me/2010/03/speed-projects-and-features-oh-my/' rel='bookmark' title='Permanent Link: Speed, projects and features &#8211; oh my!'>Speed, projects and features &#8211; oh my!</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Alrighty, here&#8217;s another attempt at cross posting to facebook + twitter + tumblr from my blog. Previously I had my posts being pushed to tumblr and twitter, and then tumblr pushing to facebook. But this made the facebook link back to tumblr and depending on the type of post may not display all my text on FB itself. So now I&#8217;m trying to get WP to push directly to FB&#8230;</p><p><a href="http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/"><em>Click here to view the embedded video.</em></a></p><p>And of course an embed test.</p><p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-posting-test/' rel='bookmark' title='Permanent Link: video+cross posting test'>video+cross posting test</a></li><li><a href='http://www.hardeep.me/2010/03/speed-projects-and-features-oh-my/' rel='bookmark' title='Permanent Link: Speed, projects and features &#8211; oh my!'>Speed, projects and features &#8211; oh my!</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>video+cross posting test</title><link>http://www.hardeep.me/2010/03/videocross-posting-test/</link> <comments>http://www.hardeep.me/2010/03/videocross-posting-test/#comments</comments> <pubDate>Sun, 14 Mar 2010 17:11:57 +0000</pubDate> <dc:creator>theootz</dc:creator> <category><![CDATA[Random]]></category> <category><![CDATA[test]]></category> <category><![CDATA[video]]></category> <category><![CDATA[vimeo]]></category><guid isPermaLink="false">http://www.theootz.com/?p=166</guid> <description><![CDATA[<p>Trying to see if I can get a video to post properly on here, facebook, tumblr and link from twitter while only making a single post here. That, and this is a damned cool video anyways!</p><p><a href="http://vimeo.com/1109226">Higher quality vimeo link</a><br /> Youtube embed&#8230;cause I think this should get embedded on tumblr?<br /> <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/pmfHHLfbjNQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/pmfHHLfbjNQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p><p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/' rel='bookmark' title='Permanent Link: video+cross post test, second attempt'>video+cross post test, second attempt</a></li><li><a href='http://www.hardeep.me/2010/02/da-stank-bank-uploader/' rel='bookmark' title='Permanent Link: Da Stank Bank &#8220;Uploader&#8221;'>Da Stank Bank &#8220;Uploader&#8221;</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol></p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/' rel='bookmark' title='Permanent Link: video+cross post test, second attempt'>video+cross post test, second attempt</a></li><li><a href='http://www.hardeep.me/2010/02/da-stank-bank-uploader/' rel='bookmark' title='Permanent Link: Da Stank Bank &#8220;Uploader&#8221;'>Da Stank Bank &#8220;Uploader&#8221;</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Trying to see if I can get a video to post properly on here, facebook, tumblr and link from twitter while only making a single post here. That, and this is a damned cool video anyways!</p><p><a href="http://vimeo.com/1109226">Higher quality vimeo link</a><br /> Youtube embed&#8230;cause I think this should get embedded on tumblr?<br /> <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/pmfHHLfbjNQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/pmfHHLfbjNQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p><p>Related posts:<ol><li><a href='http://www.hardeep.me/2010/03/videocross-post-test-second-attempt/' rel='bookmark' title='Permanent Link: video+cross post test, second attempt'>video+cross post test, second attempt</a></li><li><a href='http://www.hardeep.me/2010/02/da-stank-bank-uploader/' rel='bookmark' title='Permanent Link: Da Stank Bank &#8220;Uploader&#8221;'>Da Stank Bank &#8220;Uploader&#8221;</a></li><li><a href='http://www.hardeep.me/2010/10/an-experiment-in-3d-max/' rel='bookmark' title='Permanent Link: An experiment in 3D Max :o'>An experiment in 3D Max :o</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.hardeep.me/2010/03/videocross-posting-test/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 86/225 queries in 0.243 seconds using disk
Object Caching 1846/2020 objects using disk
Content Delivery Network via Amazon Web Services: CloudFront: Amazon Web Services: S3: cloud.theootz.com

Served from: www.theootz.com @ 2012-02-04 13:11:30 -->
