I use a simple shell script that uses rsync. It works perfectly for me.I have included it below.<br><br>What you will see is first a check to see if my external drive is mounted. It auto-mounts when plugged in. Next you will see several sections that create backups of specific directories. <br>
<br>The cleverness of the script is in the rsync command used. What it does is create a complete backup of all files every night into a new directory. However, if the file has not changed from the last time it was backed up it simply creates a hard-link to the previous backed up file. You can delete old backups and still not lose access to the files that are refrenced in later backups because they still have a hard link assigned to them. This gives you the *appearance* of a full backup every night while only using the space required to hold the deltas and a little overhead for the hard links. <br>
<br>When you do an ls on the backup directory you will see a something-current directory, which is the latest backup and then dated directories representing when their backups were taken.<br><br>I have several versions of this script that operate in different ways but the concept is the same. I am sure with a little chin scratching you could modify it to meet your need.<br>
<br><span style="font-family:courier new,monospace">#!/bin/sh</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">if [ -e $HOME/passport/backups ]</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">then</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> date=`date "+%Y-%m-%dT%H:%M:%S"`</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> echo "Backing up /home/paul"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> sudo rsync -axP --link-dest=$HOME/passport/backups/home-current /home/paul $HOME/passport/backups/home-back-$date</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> if [ -e $HOME/passport/backups/home-back-$date ]</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> then</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> rm -f $HOME/passport/backups/home-current</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> ln -s $HOME/passport/backups/home-back-$date $HOME/passport/backups/home-current</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> fi</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> echo "Backing up /etc"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> sudo rsync -axP --link-dest=$HOME/passport/backups/etc-current /etc $HOME/passport/backups/etc-back-$date</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> if [ -e $HOME/passport/backups/etc-back-$date ]</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> then</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> rm -f $HOME/passport/backups/etc-current</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> ln -s $HOME/passport/backups/etc-back-$date $HOME/passport/backups/etc-current</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> fi</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> echo "Backing up /var/www"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> sudo rsync -axP --link-dest=$HOME/passport/backups/www-current /var/www $HOME/passport/backups/www-back-$date</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> if [ -e $HOME/passport/backups/www-back-$date ]</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> then</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> rm -f $HOME/passport/backups/www-current</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> ln -s $HOME/passport/backups/www-back-$date $HOME/passport/backups/www-current</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> fi</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">else</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> echo "Passport not mounted. Backup Aborting"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">fi</span><br style="font-family:courier new,monospace"><br><br><div class="gmail_quote">On Fri, Feb 3, 2012 at 5:02 PM, Basil Chupin <span dir="ltr"><<a href="mailto:blchupin@iinet.net.au">blchupin@iinet.net.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/02/12 02:17, Bas G. Roufs wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Dear Everybody<br>
<br>
So far, I have been making backups from time to time via Dolphin or Midnight Commander: OK for one complete backup, but not effective for daily routine focussed at only newly added or changed files. Of course, I have been looking at this issue at the internet. Several packages and methods are being mentioned there. However, I am wondering which method(s) and package(s) work best in practice in my situation: Eee PC 1001 HA along with Kubuntu 11.04 or 11.10, in combination with two external mass storage devices - one HD to store at home, a 2nd one to always carry with me. In fact, I am looking for a package which is able to help me as follows:<br>
<br>
* making a first complete backup from all the text files, images,<br>
photo's, video's, etc. at each of the 2 external devices;<br>
* afterwords, making routine backups at each of the two devices<br>
while focussing only at files added or modified ever since the<br>
previous backup session.<br>
<br>
</blockquote>
<br>
I don't the answer which you are seeking but I do have a suggestion as a work-around.<br>
<br>
Seeing as how you already use mc (Midnight Commander), you do know that you can click on the Column Heading "Modify Time" and the files get resorted with, say, latest down to earliest?<br>
<br>
But the other thing, of course, is that using mc you get to answer the question whether you want to overwrite files and according to the criterium you choose (eg, if size is different, if date is earlier, etc).<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What else to take into account:<br>
<br>
* I do not want to backup software which is available anyway in the<br>
repositories or elsewhere;<br>
* My netbook does not run 24/24hours - so I prefer to regulate the<br>
time schedule manually instead of relying on some automatic schedule.<br>
<br>
Be so kind to provide me with you practical experience and thoughts. Thanks, respectfully yours,<br>
<br>
Bas Roufs.<br>
<br>
</blockquote>
<br>
BC<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
A three-year-old boy was examining his testicles while taking a bath.<br>
"Mum" he asked, "are these my brains?"<br>
"Not yet," she replied.<br>
<br>
-- <br>
kubuntu-users mailing list<br>
<a href="mailto:kubuntu-users@lists.ubuntu.com" target="_blank">kubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/kubuntu-users" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/kubuntu-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Any society that would give up a little liberty to gain a little security will deserve neither and lose both. --Benjamin Franklin<br><br>