backing-you-up
File backups are useful. It happenend more than once to me that I found something in a backup somewhere from 2 months ago that did no end up being commited in git.
Frequent file backups will make you more relaxed.
Figure 1: Vast open sky! Sun and clouds. high tech fantasy city guild wars afrika flying buildings waterfalls flowers. little rainbows
backup-each-save
Saving buffers is a great joy of life.
With backup-each-save
, each save also makes a backup file in a backup dir.
config:
(use-package backup-each-save :config (add-hook 'after-save-hook #'backup-each-save) (setf make-backup-files nil))
Lol, this is how the backup dir looks for this file I am currently modifying.
-rw-r--r-- 1 benj benj 858 Oct 4 16:06 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_06_00 -rw-r--r-- 1 benj benj 916 Oct 4 16:06 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_06_50 -rw-r--r-- 1 benj benj 935 Oct 4 16:07 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_07_21 -rw-r--r-- 1 benj benj 937 Oct 4 16:07 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_07_45 -rw-r--r-- 1 benj benj 959 Oct 4 16:08 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_08_05 -rw-r--r-- 1 benj benj 1.1K Oct 4 16:10 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_10_08 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:12 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_12_08 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:12 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_12_42 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:13 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_13_15 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:13 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_13_28 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:13 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_13_36 -rw-r--r-- 1 benj benj 1.3K Oct 4 16:13 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_13_40 -rw-r--r-- 1 benj benj 2.7K Oct 4 16:16 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_16_09 -rw-r--r-- 1 benj benj 2.7K Oct 4 16:16 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_16_18 -rw-r--r-- 1 benj benj 2.8K Oct 4 16:16 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_16_42 -rw-r--r-- 1 benj benj 2.8K Oct 4 16:16 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_16_49 -rw-r--r-- 1 benj benj 2.8K Oct 4 16:17 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_17_11 -rw-r--r-- 1 benj benj 2.9K Oct 4 16:17 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_17_47 -rw-r--r-- 1 benj benj 2.9K Oct 4 16:18 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_18_34 -rw-r--r-- 1 benj benj 2.9K Oct 4 16:18 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_18_37 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:19 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_19_07 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:19 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_19_10 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:27 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_27_36 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:27 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_27_54 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:28 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_28_10 -rw-r--r-- 1 benj benj 3.1K Oct 4 16:28 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_28_16 -rw-r--r-- 1 benj benj 3.2K Oct 4 16:28 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_28_52 -rw-r--r-- 1 benj benj 3.2K Oct 4 16:31 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_31_40 -rw-r--r-- 1 benj benj 3.3K Oct 4 16:31 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_31_48 -rw-r--r-- 1 benj benj 3.4K Oct 4 16:32 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_32_34 -rw-r--r-- 1 benj benj 3.3K Oct 4 16:32 20221004T160458--scratching-in-space__emacs.org-2022_10_04_16_32_40
The backup dir size doesnt matter compared to the vastness of my disk space.
Laptop:
du -h -d0 ~/.backups/
| 43M | /home/benj/.backups/ |
It just doesn't matter.
The space age
Other instances of emacs in the space age: