Backup of Banshee 2.6.2 in Ubuntu 14.04
William Scott Lockwood III
scott at guppylog.com
Thu Jul 9 18:43:31 UTC 2015
Donald,
On Thu, Jul 9, 2015 at 1:20 PM, Donald F. Parsons <dfp10 at verizon.net> wrote:
> William,
> My Banshee is a fairly complete data base of Milsteins violin recordings
> (the contents of 27 CDs in 27 playlists). I want to backup each playlist
> since it has taken me much time to categorize their contents.
> I will store the playlists under a Banshee volume in my Toshiba Ext
> repository which now has 456gb of memory free.
> Thanks
> Don Parsons dfp10 at verizon.net
So basically just a straight file copy process to and from different
mount points on the same machine? I would write a script, executed by
cron once a day that looked like:
#!/bin/bash
# /src is the location of the files you are backing up
# /dest is the mount point or path that you are backing the files up to
rsync -avzCSP /src /dest
If you want the backup to always mirror what's current and remove old
stale files, I would:
#!/bin/bash
# /src is the location of the files you are backing up
# /dest is the mount point or path that you are backing the files up to
rsync -avzCSP /src /dest --delete
If you want to keep backups by date instead (and thus have multiple
days worth of backup) you could always do something like this:
#!/bin/bash
# /src is the location of the files you are backing up
# /dest is the mount point or path that you are backing the files up to
rsync -avzCSP /src /dest-$(date +%Y%m%d)
While not strictly necessary to use rsync for this (one could easily
use tar for this for example), I like using rsync for two reasons.
#1: The ability to handle sparse files correctly (should you ever need
to back up any).
#2: You get a nifty progress indicator while it's running, which is nice.
Now, if space becomes a concern, you could also write a script that
looks at the disk, and wipes out files older than a certain date, thus
giving you a rotation cycle of sorts. That I will leave as an exercise
to the reader. HINT: find -exec is your friend :-)
--
W. Scott Lockwood III
More information about the ubuntu-users
mailing list