(just though of Debian Backports and dotdeb, if you want to try these before redploying, scroll down to the ***, but I still recommend upgrading)
You can use the scp (copy over ssh) command. If you use Linux or Mac, scp is built in. In Windows, you can use a program called WinSCP to have a graphical version of scp.
What you would do is create a tarball of your data in your home directory of your data then scp it to your home computer. On your Linode:
Code:
cd ~
tar cjvf backup.tar.bz2 /directory/to/backup /another/directory/to/backup /path/to/file/to/backup.txt
The first command puts you in your home directory.
You can name backup.tar.bz2 whatever you want, except that the '.tar.bz2' should remain the same, and the part before .tar.bz2 should not have any spaces. After backup.tar.bz2, you can specify as many files and directories as you want in the backup.
To get that to your home computer, you can either use WinSCP in Windows, or the following command in Windows/Mac:
Code:
cd ~
scp username@mylinode:~/backup.tar.bz2 .
Replace username with the user name you use to log in to your Linode. Replace 'mylinode' with your Linode's IP address OR with your Linode's domain name, e.g. if
www.something.com takes you to your site, use something.com (without the www. part, so for me it me be
piki@pikidomain.com).
The colon and tilde are needed, though if you named your tarball something different from backup.tar.bz2, you'll need to change that part.
The space period ' .' at the end says "copy the file to the directory I'm in right now'.
If you want to double check the tarball, use:
Code:
tar xjvf backup.tar.bz2
That'll unpack the tarball into the current directory. You can check to see if it has everything it needs.
After that, log in to your Linode Manager and redeploy.
***
CentOS uses the same update policy as Debian: Once we release a new version, we only provide it with security updates. So now that CentOS 6 is out, it won't get any new software until CentOS 7 (or until 6.1, depending on their release cycle, I don't know if the new software will be 6.1 or in 7). They feel that new software should go through rigorous testing before it's allowed in, and usually by the time it makes it in, they're already ready to make a new release.
The main problem I have with CentOS is that when you need newer software than they provide, you have to find a third party repo that isn't associated or affiliated with CentOS (at least not as far as I know), e.g. in order to run Drupal on another server that was running CentOS 5.5, I had to add a repo called WebTactic to get a newer version of PHP than CentOS had, and AFAIK the guy who runs that repo isn't associated with CentOS but is just a CentOS user. In Debian, you can use Debian Backports and dotdeb, which will expand the software available to you and will have newer versions of software already available to you. I have yet to have issues with either of these. Even so, it's still good to update to the newer Debian because they won't update every single core package, and with 6.0 out, there won't be as many updates added to 5.0.
To add dotdeb and Deian Backports, edit the file /etc/apt/sources.list (e.g. 'nano /etc/apt/sources.list'), and add the following lines:
Code:
# dotdeb
deb http://packages.dotdeb.org oldstable all
deb-src http://packages.dotdeb.org oldstable all
# Backports
deb http://backports.debian.org/debian-backports lenny-backports main
deb http://backports.debian.org/debian-backports lenny-backports-sloppy main
This tells the package manager (software manager) where to go to install stuff from Dotdeb and Backports.
Then:
Code:
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
apt-get update && apt-get -t lenny-backports dist-upgrade && apt-get dist-upgrade
The first two lines grab the authentication key for dotdeb and adds it to the package manager so it knows it's authentic (AFAIK Backports doesn't need that). Th second line tells apt-get to update it's list of installable software, then tells it to upgrade all software from Backports only (you need to specify '-t lenny-backports' to install/upgrade anything from Debian Backports, Debian 6.0 would call it 'squeeze-backports' instead), then tells it to upgrade anything that Backports doesn't have an upgrade for.
(edited to explain the commands).