[Digikam-users] what do you use for backups?

Chris Green cl at isbd.net
Wed Jun 8 11:29:37 BST 2016


Anders Kamf <digikam at kamf.se> wrote:
> [-- multipart/alternative, encoding 7bit, 130 lines --]
> 
>     [-- text/plain, encoding quoted-printable, charset: UTF-8, 52 lines --]
> 
> 2016-06-07 12:57 GMT+02:00 Chris Green <cl at isbd.net>:
> 
> > bernhard <digikam at kilmann.net> wrote:
> > > [-- multipart/alternative, encoding 7bit, 125 lines --]
> > >
> > >     [-- text/plain, encoding 7bit, charset: UTF-8, 58 lines --]
> > >
> > >
> > >
> > > there is quite cool feature in rsync that allows you to sync your backup
> > > in a directory on you backup medium. Lets say you want to backup
> > > /pictures on your pc in directory /week01 on your usb disk. standard
> > > procedure is to do the next rsync against /week01 too which replace
> > > changed files.
> > >
> > > another option is to tell rsync to do the backup of /pictures to lets
> > > say /week02 but use /week01 as base. in that case rsync compares your
> > > files in /pictures against your files in /week01. If a file is not
> > > changed it created an hard link in /week02 pointing to the same file in
> > > /week01. if a file is deleted it will not show up in /week02 (but still
> > > in /week01). if a file has changed it is copied to /week02 while you can
> > > access the old version in /week01. So you can have several versions of
> > > your /pictures directory but you need only disk size from /pictures on
> > > your pc plus the space for files that change on every extra backup you
> > > do. for that you usb drive need to have a linux filesystem like ext4 to
> > > support hardlinks.
> > >
> > Yes, I use this rsync 'hard link' ability with a self-written Python
> > script to do incremental backups.  On my main desktop system I do
> > hourly and seven days of daily backups, these go onto a different
> > drive so at least will protect me from drive failure.
> >
> > The I do daily, weekly, monthly and yearly incremental backups to a
> > remote (well some hundred metres or so) system as well.
> >
> > Using the rsync hard-link option means that only changes and new files
> > occupy space.
> >
> Hard links is what rsnapshot use as well to do incremental backup.
> 
Yes, I know, I used rsnapshot for a while but decided that writing my
own script (which is much less complex than rsnapshot) would give me
more exactly what I wanted.

My incremental backup script is only a hundred lines or so of Python
code.

-- 
Chris Green
ยท




More information about the Digikam-users mailing list