LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2009, 05:22 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
back-up software


Can anyone recommend a program to back up my data? I use Ubuntu 9.04 at the mo. I want to make back-ups on to an external HD, just in case. No state secrets are involved, so I don't need anything fancy. Just something to save me dragging and dropping each time. Something like 'if this folder changes, back it up'

Thanks!
 
Old 12-27-2009, 05:30 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

It all depends on what you want the backup progam to do. If it's just for some personal data or like your home directory, then you could just use a simple backup script which can be found on the internet and run it via cron on a specific time. You could also use a file synchronizer like rsync or Unison to run on a regular basis to synchronise any changes to your external device.

An easy to change example of a backup script: http://www.xs4all.nl/~voorburg/backup.html
More info on different backup possibilities: http://www.linux-backup.net/App/

Kind regards,

Eric
 
Old 12-27-2009, 05:31 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello Pedroski,

I'm using flexbackup. This is a Perlscript. One can define so called "sets" with the files or directories to be updated. Also flexbackup can handle full-, differential-, and incremental-backups.
If you chose an incremental backup, only the files which have been changed are backed up. This will meet your needs.

I have second internal harddrive as my backupdevice and flexbackup is started (daily after an amount of time when computer is started) by the anacron-daemon.

Here a useful link: http://www.edwinh.org/flexbackup/

Markus

Last edited by markush; 12-27-2009 at 05:33 AM.
 
Old 12-27-2009, 06:23 AM   #4
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
A back up script sounds good. But, as the external usb drive is not always present, I will need to call it manually, or build in an error handler if it starts without the drive plugged in. The script shown in the link xs-4all is very old, he talks about 6MB HD! Will it still work?? Also, being root in Ubuntu is a problem, they have a UUID whatever that is, and of course sudo.
 
Old 12-27-2009, 06:32 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I know the link is pretty old and mentions small HD, but that doesn't change what the script does. It's in my opinion a very easy script to adapt to your needs. Building in a test to check if your external harddisk is mounted and if not then mount it, wouldn't be to hard to do.

You have two options as I see it when taking into account the sudo 'problem'. Either you run the script manually or via crontab as your user putting sudo in front of it, or you add the script to the root's crontab.

That script only uses things like tar and find to make a backup, so nothing special lurking around the corner.

Kind regards,

Eric
 
Old 12-27-2009, 06:45 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

for an external HD as a backupdevice you may associate udev-rules to start the backupscript always when the drive is connected to the PC. http://www.reactivated.net/writing_udev_rules.html

Be aware that the cron-daemon is more useful on servers (which run day and night) and the anacron-daemon is a useful alternative for desktop-PCs. anacron starts programs after a specific amount of time after starting the PC.

Markus

Last edited by markush; 12-27-2009 at 07:00 AM.
 
Old 12-27-2009, 06:46 AM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks! Can I ask you if I run into probs adapting the script?
 
Old 12-27-2009, 06:50 AM   #8
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
systemrescuecd.
 
Old 12-27-2009, 06:52 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

That of course depends on the changes you make to the script but normally if you test the commands you put in there, you shouldn't encounter problems. If you do have errors, just post them here and someone will help out for sure. If you want to you can also post your changed script here so that others may look at it and point out errors if any exist. Also take into consideration the post of markush about the udev rules and using anacron instead of cron. He made some good points there.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need suggestions for back up software on sarge slak05 Debian 3 01-16-2009 01:22 PM
Back-up software for Linux furcatus Linux - Software 4 12-12-2005 04:22 AM
recommendations for back up software? dsschanze Linux - Software 1 06-08-2005 09:04 PM
money back from bundled software.. joel112 General 1 10-26-2003 09:53 AM
back up GUI software p_murugappan Linux - General 0 08-15-2001 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration