From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: backing up hard drive with emacs? Date: Sun, 29 Jun 2014 19:41:04 -0700 (PDT) Message-ID: <9fe305c0-81d4-417b-9f6a-492044a9719e@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1404100408 16598 80.91.229.3 (30 Jun 2014 03:53:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2014 03:53:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 30 05:53:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X1See-0008GN-FR for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jun 2014 05:53:20 +0200 Original-Received: from localhost ([::1]:60434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1See-0006IY-2i for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jun 2014 23:53:20 -0400 X-Received: by 10.66.151.140 with SMTP id uq12mr21261113pab.23.1404096065689; Sun, 29 Jun 2014 19:41:05 -0700 (PDT) X-Received: by 10.50.143.104 with SMTP id sd8mr533880igb.7.1404096065481; Sun, 29 Jun 2014 19:41:05 -0700 (PDT) Original-Path: usenet.stanford.edu!hn18no19733237igb.0!news-out.google.com!gf2ni200igb.0!nntp.google.com!hn18no19733225igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=159.117.1.11; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 159.117.1.11 User-Agent: G2/1.0 Injection-Date: Mon, 30 Jun 2014 02:41:05 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:206181 X-Mailman-Approved-At: Sun, 29 Jun 2014 23:53:02 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98452 Archived-At: 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.