From: Evans Winner <thorne@timbral.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Change backup system
Date: Mon, 28 Jul 2008 13:20:21 -0600 [thread overview]
Message-ID: <8663qp7r4a.fsf@timbral.net> (raw)
In-Reply-To: 3d30c6e7-d266-4b5b-a397-b9180a0acd88@y21g2000hsf.googlegroups.com
Florian Lindner <Florian.Lindner@xgm.de> writes:
My idea is to copy the file to another folder. When I
edit and save ~/ text/file.txt the backup is saved in
~/.emacs.d/backup/home/florian/ text/file.txt.n with n
being a number incremted form 1 to x each save.
I have a directory called ~/bu and this in my .emacs
(thought I am not sure which versions of Emacs it works
with):
(setq version-control t) ; Numbered backups.
(setq backup-directory-alist ; Backup directory
`(("." .
,(expand-file-name "~/bu"))))
I don't know if this is exactly what you mean.... I
occasionally clean out old stuff from my ~/bu directory.
The files are named like this:
!home!thorne!hacking!litmus!mla.tmac.~3~
with bang-path kinda names and the number at the end a
version number.
Here is some documentation about those variables:
,----[ C-h v version-control RET ]
| version-control is a variable defined in `/home/usr/local/share/emacs/23.0.60/lisp/files.elc'.
| Its value is t
|
| This variable is safe as a file local variable if its value
| satisfies the predicate `(lambda (x) (or (booleanp x) (equal x (quote never))))'.
|
| Documentation:
| Control use of version numbers for backup files.
| When t, make numeric backup versions unconditionally.
| When nil, make them for files that have some already.
| The value `never' means do not make them.
|
| You can customize this variable.
`----
,----[ C-h v backup-directory-alist RET ]
| backup-directory-alist is a variable defined in `/home/usr/local/share/emacs/23.0.60/lisp/files.elc'.
| Its value is
| (("." . "/home/thorne/bu"))
|
|
| Documentation:
| Alist of filename patterns and backup directory names.
| Each element looks like (REGEXP . DIRECTORY). Backups of files with
| names matching REGEXP will be made in DIRECTORY. DIRECTORY may be
| relative or absolute. If it is absolute, so that all matching files
| are backed up into the same directory, the file names in this
| directory will be the full name of the file backed up with all
| directory separators changed to `!' to prevent clashes. This will not
| work correctly if your filesystem truncates the resulting name.
|
| For the common case of all backups going into one directory, the alist
| should contain a single element pairing "." with the appropriate
| directory name.
|
| If this variable is nil, or it fails to match a filename, the backup
| is made in the original file's directory.
|
| On MS-DOS filesystems without long names this variable is always
| ignored.
|
| You can customize this variable.
`----
next prev parent reply other threads:[~2008-07-28 19:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-28 19:00 Change backup system Florian Lindner
2008-07-28 19:20 ` Evans Winner [this message]
2008-07-28 19:57 ` Peter Dyballa
2008-07-28 20:18 ` Thierry Volpiatto
2008-07-29 9:29 ` Xah
2008-07-29 18:12 ` Florian Lindner
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=8663qp7r4a.fsf@timbral.net \
--to=thorne@timbral.net \
--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.