Backing up your computer while you’re sleeping

There is a lot of things that our computer can do while we’re sleeping, beside the obvious shutting it down to save energy. I like to schedule backup to my external HD and to Ubuntu One. I like to upload my important documents to Ubuntu so that I can download them anywhere in case I need them. Since I am studying I can’t afford to loose my research papers and assignments.

Backing up my documents

At the time of writing this blog, Ubuntu does not support sharing folders or files outside ‘~/ubuntuone’.So I created a shell script that zip my documents and copy them to Ubuntu One folder on an hourly basis. A zip command can be :

zip -r '/home/zainul/Ubuntu One/academic.zip'  '/home/zainul/Documents/Victoria'

This will create a zip file under ‘/home/zainul/Ubuntu One/academic.zip’ that contains any file under ‘/home/zainul/Documents/Victoria’.Ubuntu will automatically upload new or modified file from my Ubuntu One folder to the web.

Scheduling the backup

I created a shell script that back up and copy my files to Ubuntu One folder:

# Backup my university research paper to Ubuntu One
zip -r '/home/zainul/Ubuntu One/academic.zip'  '/home/zainul/Documents/Victoria'

I save this script as ‘backup.sh’ and grant execute rights by typing ‘chmod u+rx backup.sh’ into the console. I use a task scheduler UI to execute this script on an hourly basis.

Backing Up My Laptop.

I use SBackUp to back up my Ubuntu to my external HD.

add to del.icio.us Digg it Stumble It! post to facebook

About these ads

About zainul franciscus

Hi, I am a software developer and tech blogger who is currently living in Wellington, New Zealand. I write stuff that I find interesting on
This entry was posted in Ubuntu and tagged , , , , . Bookmark the permalink.

2 Responses to Backing up your computer while you’re sleeping

  1. sEbastian says:

    not sure but
    “This will create a zip file called ‘academic’ that contains any file under ‘/home/zainul/UbuntuOne/Victoria’.Ubuntu will automatically upload new or modified file from my Ubuntu One folder to the web.”

    Shouldn’t this read:
    ‘This will create a zip file called academic that contains any file under ‘/home/zainul/Documents/Victoria’ …?

    Just curious!?

  2. Hey Sebastian,

    Thank you for the comment. You’re absolutely right. I corrected the directory instructions.

    Cheers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s