Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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)
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.