Copyright (C) 2000-2012 |
GNU Info (tramp)Auto-save and BackupAuto-save and Backup configuration ================================== Explaining auto-save is still to do. Normally, Emacs writes backup files to the same directory as the original files, but this behavior can be changed via the variable `backup-directory-alist'. In connection with TRAMP, this can have unexpected side effects. Suppose that you specify that all backups should go to the directory `~/.emacs.d/backups/', and then you edit the file `/su:root@localhost:/etc/secretfile'. The effect is that the backup file will be owned by you and not by root, thus possibly enabling others to see it even if they were not intended to see it. When `backup-directory-alist' is nil (the default), such problems do not occur. If you wish to customize the variable, the workaround is to include special settings for TRAMP files. For example, the following statement effectively `turns off' the effect of `backup-directory-alist' for TRAMP files: (require 'tramp) (add-to-list 'backup-directory-alist (cons tramp-file-name-regexp nil)) automatically generated by info2www version 1.2.2.9 |