Index

Subject : Re: LUG: Automatic backups within AFS space

From : Brian <spiffytech@gmail.[redacted]>

Date : Tue, 16 Jun 2009 10:07:22 -0400

Parent


Creating a tarball would certainly do it, though it would be space-inefficient because you're storing duplicates of files between weekly backups. A better way might be to use a program called rsnapshot. It uses rsync to do backups, but stores each weekly backup in it's own directory, hardlinking the identical files between them so that there's only one copy of the file on disk. You can set it to back up automatically with a cron job (or run it manually), and specify in the configuration file how many weekly (or daily, hourly, monthly. etc.) backups to keep.

-Brian


On Tue, Jun 16, 2009 at 9:59 AM, Daniel Underwood < daniel.underwood@ncsu.[redacted] > wrote:
I have two locker on AFS space:

(1) /afs/unity/users/d/djunderw
(2) /afs/eos/lockers/people/d/djunderw

I keep a frequently updated backup of important files in locker (1),
using rsync on a single local folder (~/ncsu). There is only a single
backup, of course, because I use the "-vhaul --delete" option set to
create a mirror of my local copy of ~/ncsu.

I want to use locker (2) to keep weekly backups of ~/ncsu from locker
(1), such that I can "roll back" to a previous time (i.e., no weekly
backup overwrites a previous weekly backup).

--What's the "best" way of going about this?

--Should I simply set up a weekly cron job to create a gunzipped tarball
of ~/ncsu and place it in locker (2)?

--In any case, how can I set the archive's filename to automatically
contain the date it is created (e.g., "ncsu_2009-06-16.tar.gz")?

Thanks,
Daniel
--
Daniel Underwood
North Carolina State University
Graduate Student - Operations Research
email: daniel.underwood@ncsu.[redacted]
phone: XXX.302.3291
web: http://www4.ncsu.edu/~djunderw/



Replies :