We already use rsanpshot for backups. But its always feel safe to have more than one kind of backup. For other type of backup, we use Crashplan. They support all major platforms, provides many options and have their service decently priced. It will take a separate post to list down all things I like about Crashplan so lets get back to work here! What I wanted to do:
I guess you can start remote X session or something like that on a Ubuntu server but that will be overkill for server. Specially when you can achieve above tasks in just 2 minutes using following commands. PreparationCrashplan on Ubuntu will need Java Runtime (JRE). Crashplan can install it itself but I prefer to have more control over which JRE I end up putting on our server. They have almost 5 version of JAVA for Ubuntu! Anyway, just run following command as root user or with sudo access: apt-get install openjdk-7-jre-headless Install CrashplanNext, we will install Crashplan directly. Go to Crashplan site, select Linux version and copy-download link to grab latest Crashplan version. Crashplan 3.2.1 is latest as of July 2012. Run following commands to download, uncompress and install Crashplan… wget http://download.crashplan.com/installs/linux/install/CrashPlan/CrashPlan_3.2.1_Linux.tgz tar -zxvf CrashPlan_3.2.1_Linux.tgz cd CrashPlan-install ./install.sh Installer will ask you for many questions. Just keep hitting enter keys. Defaults options are all good to go ahead! At this point Crashplan is running on your Ubuntu Server but it's not backing anything yet! We will use Crashplan's Desktop edition for Mac to start backup. Remote Management UI (using Mac)Go to Crashplan's site. This time download Crashplan for Mac & Install it. If you have started Crashplan after installation, quit it. Open terminal to edit Crashplan config file… vim /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties You can use any text-editor in case you don'e like Vim. Find a line like below: #servicePort=4243 Change it to: servicePort=4200 Note that we have changed port number from 4243 to 4200 (in case you thought we just uncomment it!). Save file. Exit vim. Create SSH Tunnel from your mac to remote Ubuntu server using a command-like below: ssh -L 4200:localhost:4243 username@hostname Replace username and hostname with your a real username on your hostname. You can put your server IP address also. After you run above command, you will be logged into a shell on your server. Keep it running as its connecting your desktop crashplan to your server crashplan! Finally, you can start your Crashplan on Mac and configure backup for your Ubuntu Server! In case you are already using Crashplan to manage your Mac's local backup:
There is no easy-way to switch between local & remote machines. (Atleast at the time of writing this…) Related posts:
-- This Post Ubuntu Server + CrashPlan + Backup + Remote Management using Mac is Published on Devils Workshop . | |||
| |||
| |||
|
Friday, 27 July 2012
Ubuntu Server + CrashPlan + Backup + Remote Management using Mac
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment