all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: backing up hard drive with emacs?
Date: Sun, 29 Jun 2014 19:41:04 -0700 (PDT)	[thread overview]
Message-ID: <9fe305c0-81d4-417b-9f6a-492044a9719e@googlegroups.com> (raw)
In-Reply-To: <mailman.1372.1400122612.1147.help-gnu-emacs@gnu.org>

On Thursday, May 15, 2014 2:56:18 AM UTC, Steven Arntson wrote:
> Sorry if this question is poorly stated... I'm a beginning emacs user
> 
> who's trying to be more responsible about backing up the hard drive of my
> 
> computer. A friend gave me a USB drive with the same amount of space as
> 
> my laptop's hard drive, and I'd like to figure out how to back up the
> 
> data.
> 
> 
> 
> I've read some info online, and am primarily confused by it. I'd like a
> 
> simple way to make a copy of my home folder on this drive. I don't need
> 
> compressed archives or anything--this is just in case a boulder falls on
> 
> my laptop--but it would be nice if it had the ability to see what I'd
> 
> changed since last time and just recopy that, rather than doing it all
> 
> from scratch. (Is it called "cloning" the drive?)
> 
> 
> 
> Does emacs have any simple utility to do this kind of thing, or
> 
> (slightly offtopic) is there a cli command that would make it happen?
> 
> 
> 
> Lastly, should I be thinking about this whole issue differently than I
> 
> am?
> 

I used to be in the same situation where my file AUTOEXEC.BAT was deleted when I issued
the command rm * in the C:\ drive.  I have developed some Elisp tools for implementing an
automated backup system.

Check out my web page, Section 2.1 an automated backup system...

http://davin.50webs.com/research/2006/mopa2e.html

I have written a function datify that renames a tar file from foo.tar.gz to foo-YYYYMMDD-hhmmss.tar.gz, where YYYY is the current year, etc.

I have also written a function cull-same-dates that culls all but on file for a given date.  This is useful 
when you build many archive files on a given date.  It simply keeps the newest one.

I have also written a function cull-size-quota that culls older files that exceed the given size quota.
Note that you will need to hard code the size parameters in this function as they are currently coded
for my machine.

I have also written a function called demises that warns about archive files that have reduced in size more than a given amount.  Archive files that reduce in size can indicate a problem in the archive file.

If you use my automated backup system above, then all you need to do is to add a tar Makefile target in the directories that you want to backup.

I hope this helps...

Davin.



       reply	other threads:[~2014-06-30  2:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1372.1400122612.1147.help-gnu-emacs@gnu.org>
2014-06-30  2:41 ` Davin Pearson [this message]
2014-06-30  2:43   ` backing up hard drive with emacs? Davin Pearson
2014-05-15  2:56 Steven Arntson
2014-05-15  3:17 ` Eric Abrahamsen
2014-05-15  3:21 ` Bob Proulx
2014-05-15  3:53   ` Steven Arntson
     [not found]   ` <mailman.1379.1400126061.1147.help-gnu-emacs@gnu.org>
2014-05-15 15:04     ` Barry Margolin
2014-05-15 16:22     ` Hans BKK
2014-05-15 18:33       ` Dan.Espen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9fe305c0-81d4-417b-9f6a-492044a9719e@googlegroups.com \
    --to=davin.pearson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.