LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-19-2007, 09:49 PM   #1
fifteen10e56
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian Unstable
Posts: 23

Rep: Reputation: 15
easy backup utility


So back when I used Windows, I had this handy backup utility that I have forgotten the name of, but basically it would copy certain the parts of the My Documents folder I cared about onto my second hard drive. I had it set to do this every night at 10:00, and what was especially nice was it only copied the actual changes between files.

I haven't been able to find anything like this in Linux (currently using Debian Unstable + GNOME). I have very limited space, so I can't do with a utility making a separate backup each day. I've found programs that will crate a .tar of certain things, but they seem to create a separate one each time I backup. I also don't know anything about scripting, so I wouldn't know how to write a script to do this myself. I also don't care if it packages everything into an archive or not, as long as it's on the other hard drive. Any ideas on what I should use?

Thanks!
 
Old 04-20-2007, 12:59 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
can use tar for backup regardles what linux u have
this is the way i use ( tar cpjvf /foldertostorebackup/file.tar.bz2 folderneedtobackup/

1) for the whole system backup
Code:
tar cpvjf /export/sysback-`date '+%d-%B-%Y'`.tar.bz2 --exclude proc --exclude export --exclude dev --exclude media  /



2) for file backup i use this way
Code:
tar cpvjf /export/Mail_Backup/virtual-`date '+%d-%B-%Y'`.tar.bz2 virtual/
/export folder is another drive in my puters


hope this will help u, if there someone not yet point to very easy way to backup

cheers
 
Old 04-20-2007, 04:43 PM   #3
Marsolin
Member
 
Registered: Jul 2005
Posts: 124

Rep: Reputation: 15
Simple Backup and Keep are a couple options.
 
Old 04-22-2007, 11:52 AM   #4
fifteen10e56
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian Unstable
Posts: 23

Original Poster
Rep: Reputation: 15
I would use the tar method, but the main thing I want in a backup program is automation; I want it to run every night and get the latest copy of the files that matter.

I tried using Simple Backup, but for some reason or another it didn't actually create a backup for me, just an empty folder that it should have backed stuff up into.

Looking through the Linux App Finder site (which I've never seen prior to you linking me to it - thanks!), I realized that I'm more looking for a file synchronization program, although it didn't seem that any of the ones I found could be scheduled to run at a certain time (at least the option wasn't available in the gui and I'm not yet especially console-savvy).
 
Old 04-23-2007, 08:17 AM   #5
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
yes u can use as automation copy a command to a file
eg pico -w backup-nite <- add the command in
chmod 755 backup-nite

set a crond to be executed nitely or every 12 hours
please refer to crontab operation

this is simple link example of crontab operation

http://www.adminschoice.com/docs/crontab.htm

Last edited by routers; 04-23-2007 at 08:24 AM.
 
Old 04-23-2007, 08:23 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
There is also this:

Quote:
Package: faubackup (0.5.9)
Backup System using a Filesystem for Storage

This Program uses a filesystem on a hard drive for incremental and full backups. All Backups can easily be accessed by standard filesystem tools (ls, find, grep, cp, ...)

Later Backups to the same filesystem will automatically be incremental, as unchanged files are only hard-linked with the existing version of the file.
It's very very simple. It doesn't compress because the key feature is that you can browse in the backup. It's a full copy and then incremental backups are done using hard link (a same file won't be copied again)
 
Old 04-23-2007, 09:26 AM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by fifteen10e56
So back when I used Windows, I had this handy backup utility that I have forgotten the name of, but basically it would copy certain the parts of the My Documents folder I cared about onto my second hard drive. I had it set to do this every night at 10:00, and what was especially nice was it only copied the actual changes between files.
If I understand you correctly you would like to have the directory tree stored on the backup drive in the same way that it exists on the primary drive. In other words you don't want to have archive files; you want a directory tree exactly like the one that you are backing up. You can do this with the tar command but it involves piping the output of one tar command into another so I don't think that it would only copy files that have changed since the last backup. Rather, this example will copy all of the files on the primary hard drive to the backup drive and it will overwrite all of the files. However, it will not delete any files on the backup drive.
Code:
tar c /folder/to/backup | tar xvp --directory=/backup/drive/mount/point
I use this to copy directory trees all the time. Since I work on various flavors of Unix and Linux and I can't count on GNU tar being available on, let's say, Solaris, I use the tar utility to copy directory trees.

Or you can go ahead and use the cp command with the --update parameter.
Code:
cp -R --update /folder/to/backup /backup/drive/mount/point
You can make this happen automatically at a given time every day or whatever frequency that you want by putting the command in your crontab file to execute at times that you specify. You can look up cron and crontab in the man utility.
Code:
man cron
man crontab
You can put the command directly into the crontab file without creating a script.

Last edited by stress_junkie; 04-23-2007 at 09:41 AM.
 
Old 04-26-2007, 07:45 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
For some more information:

http://www.trickykid.org/index.php?itemid=4&catid=2
http://www.rsnapshot.org/howto/1.2/r...-HOWTO.en.html
 
Old 04-26-2007, 06:13 PM   #9
fifteen10e56
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian Unstable
Posts: 23

Original Poster
Rep: Reputation: 15
I'm actually doing what stress_junkie suggested of putting a cp command for each directory I want into my crontab, and it seems to be working quite well. Thanks!
 
  


Reply



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
Better backup utility ? tidiman07 Ubuntu 4 08-04-2006 02:54 PM
Backup utility wanted MurX Linux - Software 10 04-21-2006 07:11 AM
backup utility saini_mw Linux - Software 1 04-18-2006 09:16 AM
Backup Utility Echo Kilo Linux - Software 2 05-16-2005 02:42 PM
BACKUP utility c0c0deuz Linux - Software 5 06-19-2003 03:47 PM

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

All times are GMT -5. The time now is 01:49 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