Incremental Backup script (Updated)
This script does a daily backup from ~/Documents to an external drive, /media/backup. It uses hard links to minimise storage and rsync to do the copying and syncing of the files. After a week you end up with Documents-Monday's-date, Documents-Tuesday's-date, etc. but it only takes up the storage of one copy plus any changed files. At the end of the week it "recycles" the days, rsync does a good job of keeping the files matching the original, and it saves doing more copies than is needed, good for flash based drives.
It was inspired by the Easy Automated Snapshot-Style Backups with Linux and Rsync, but I wanted something more intuitive than just backup numbers, dates help me have a better idea of when the backup was created, rather than just that it exists.
The best way to use this file is to plonk it into /etc/cron.daily/ so it runs every day, just save the code into a file there and you're away. So long as you have cron running!
It was inspired by the Easy Automated Snapshot-Style Backups with Linux and Rsync, but I wanted something more intuitive than just backup numbers, dates help me have a better idea of when the backup was created, rather than just that it exists.
The best way to use this file is to plonk it into /etc/cron.daily/ so it runs every day, just save the code into a file there and you're away. So long as you have cron running!
Website Development
Alongside my own website which I'm working on refurbishing, I'm also working on a website for Steven Hoskins, the site has a dark theme which is specified by a fully original CSS and graphics. The profile page has a script to get the latest entry from his blog's rss feed and display it in html. The script if from this site, however I hope to develop my own version.
At the moment my site uses a CSS theme from Free CSS Templates, however I have modified it with all new graphics and some changes to the way it displays H2 tag in the page, I plan to fully re-write the CSS, mainly as an exercise to practice my CSS coding.
At the moment my site uses a CSS theme from Free CSS Templates, however I have modified it with all new graphics and some changes to the way it displays H2 tag in the page, I plan to fully re-write the CSS, mainly as an exercise to practice my CSS coding.
PHP/mySQL CMS
Although this may seem a pointless exercise, and in many ways it is, I'm working on my own PHP/mySQL Content Management System. Although there are many such systems out there, I've not found one that I'm completely happy with, and this is a good way to learn PHP and mySQL, both of which are outside the scope of my University course, along with practicing good development practices in designing the system from the ground up.
The system is currently only basically functional, it can pull pages from the database and display them, and do basic insertion into the database, but little else. This is partly tied in with my CSS re-write as once I have a less complex layout to work with it should be easier to get the PHP to manipulate the content to fit, as well as making the task of developing themes for the cms a much simpler task.
The system is currently only basically functional, it can pull pages from the database and display them, and do basic insertion into the database, but little else. This is partly tied in with my CSS re-write as once I have a less complex layout to work with it should be easier to get the PHP to manipulate the content to fit, as well as making the task of developing themes for the cms a much simpler task.
Select a stylesheet
- Green Stylesheet
- Black Stylesheet
- Clean Stylesheet
- Mobile Stylesheet works when using a "handheld" browser.
Twitter!
- Hm, it seems this hasn't worked. This is where the feed should show up.
W3C