Configure mackup

- ignore apps whose config files are in the dotfiles repo already
  (see: https://gitlab.webartifex.biz/alexander/dotfiles)
- ignore ~/.password-store as it contains symlinks
- sync various (config) files that are not be public:
  + Cisco's AnyConnect
  + history files for bash, less, python, psql, tig, and zsh
  + Gnome Nautilus' bookmarks
  + SSH config
This commit is contained in:
Alexander Hess 2022-08-09 15:17:41 +02:00
parent 06f19f78dc
commit b3322f6a44
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
8 changed files with 70 additions and 0 deletions

25
.mackup.cfg Normal file
View file

@ -0,0 +1,25 @@
[storage]
engine = file_system
path = /home/alexander/data/getraenkemarkt
directory = mackup
[applications_to_ignore]
# Do not sync configuration files managed by
# https://gitlab.webartifex.biz/alexander/dotfiles
bash
bat
git
flameshot
mackup
neofetch
p10k
pgsql
poetry
ssh
vim
zsh
# Do not sync ~/.password-store as it contains symlinks
# that Nextcloud does NOT support
pass

6
.mackup/README.md Normal file
View file

@ -0,0 +1,6 @@
# Configuration for `mackup`
This folder contains various **config** files
to make [`mackup`](https://github.com/lra/mackup)
synchronize (dot) files the general public should *not* see.
Their format is described [here](https://github.com/lra/mackup/tree/master/doc#add-support-for-an-application-or-almost-any-file-or-directory).

5
.mackup/anyconnect.cfg Normal file
View file

@ -0,0 +1,5 @@
[application]
name = Cisco's AnyConnect
[configuration_files]
.anyconnect

13
.mackup/histories.cfg Normal file
View file

@ -0,0 +1,13 @@
[application]
name = various history files
[configuration_files]
.bash_history
# .lesshst -> less overwrites the symlink unfortunately
.python_history
.tig_history
.zhistory
[xdg_configuration_files]
# ~/.config/psql is set in ~/.psqlrc for all history files
psql

5
.mackup/nautilus.cfg Normal file
View file

@ -0,0 +1,5 @@
[application]
name = Gnome Files a.k.a. Nautilus
[xdg_configuration_files]
gtk-3.0/bookmarks

5
.mackup/ssh_private.cfg Normal file
View file

@ -0,0 +1,5 @@
[application]
name = private SSH (config) files
[configuration_files]
.ssh/config

View file

@ -20,6 +20,10 @@
-- Use the best text editor in the world -- Use the best text editor in the world
\set EDITOR vi \set EDITOR vi
-- Use separate history files per database and
-- keep them in one folder (for easier sync with mackup)
\set HISTFILE ~/.config/psql/.psql_history- :DBNAME
-- Don't store the same SQL statement repeatedly -- Don't store the same SQL statement repeatedly
\set HISTCONTROL ignoredups \set HISTCONTROL ignoredups

View file

@ -43,3 +43,10 @@ Additionally, two `virtualenv`s, called "interactive" and "utils", are also crea
(e.g., [youtube-dl](https://github.com/ytdl-org/youtube-dl/)). (e.g., [youtube-dl](https://github.com/ytdl-org/youtube-dl/)).
Use `pyenv local ...` to specify a particular Python binary for a project. Use `pyenv local ...` to specify a particular Python binary for a project.
### Private Dotfiles
After setting up the Python environments (i.e., the "utils"),
running `mackup restore` symlinks further dotfiles into `~/`.
This only works for this project's maintainer.