From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: deleting backup files dependant on their age
Date: Tue, 24 Nov 2015 01:01:55 +0100 [thread overview]
Message-ID: <87d1v08du4.fsf@debian.uxu> (raw)
In-Reply-To: 874mgcebxk.fsf@skimble.plus.com
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> I'm revisiting the age-old problem of deleting
> backup files, where currently I have 1,383 which is
> increasing day-by-day.
OK, first, by "backups", you mean files like
this~, right?
Second, are you sure 1383 files is a problem? As an
example, I have 887 mails (not backups) in a folder
and according to
du -sh
they total 89M. So it is not a lot.
Third, you can use the -I option of ls(1) if you just
don't want to see them.
Fourth, if you would consider no backups at all, try
this:
(setq make-backup-files nil)
(setq auto-save-list-file-prefix nil)
> I have this in my ... but its failing to work, saying this -
> Symbol's value as variable is void:
> ~/.emacs.d/backups
You probably need to make that a string, i.e.
"~/.emacs.d/backups".
> How then can I set up auto-delete backup files for
> older than 14 days which are held in
> "~/.emacs.d/backups" please?
You can also do this in the shell with find(1) but
perhaps you want do try the Emacs solution first.
Otherwise it would probably be just as doable
with 'find'.
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-11-24 0:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 19:46 deleting backup files dependant on their age Sharon Kimble
2015-11-23 20:14 ` Eli Zaretskii
2015-11-24 0:01 ` Emanuel Berg [this message]
2015-11-24 0:58 ` Emanuel Berg
[not found] ` <mailman.585.1448326084.31583.help-gnu-emacs@gnu.org>
2015-11-24 4:46 ` Dan Espen
2015-11-25 1:26 ` Emanuel Berg
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=87d1v08du4.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--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.