diff --git a/.config/bootstrap/config_common b/.config/bootstrap/config_common index 6966954..925d742 100644 --- a/.config/bootstrap/config_common +++ b/.config/bootstrap/config_common @@ -37,6 +37,7 @@ python-pyperclip python-requests qbittorrent redshift +restic rofi rsync signal-desktop diff --git a/.config/systemd/backup.service.desk b/.config/systemd/backup.service.desk index cfdb197..2ffc5e7 100644 --- a/.config/systemd/backup.service.desk +++ b/.config/systemd/backup.service.desk @@ -1,11 +1,7 @@ [Unit] -Description=Back up chosty's documents +Description=Back up chosto's documents OnFailure=notify-backup-failure.service [Service] Type=oneshot -# Cannot use -a as FAT32 does not support permission. Also don't use -g and -l (FAT32 does not support groups and symlinks) -# Do not use full path and relax timestamp, otherwise all files are copied over -# For some reason, exclude should be relative path (cf man), but this does not work for the first command. Dunno why -ExecStart=/usr/bin/rsync -vCRErtm --delete --delete-excluded --modify-window=10 --include="/home/chosty/.config" --exclude="/home/chosty/.*" --exclude="/home/chosty/aur" --exclude="/home/chosty/git" /home/chosty /mnt/backup/Linux -ExecStart=/usr/bin/rsync -vCErtm --delete --delete-excluded --modify-window=10 --exclude="/Documents/Jeux" /mnt/data/Documents /mnt/data/Images /mnt/data/Vidéos /mnt/backup/Data/ \ No newline at end of file +ExecStart=RESTIC_PASSWORD=$(cat /root/restic) restic -r /backup/restic --verbose backup --exclude '~/.*' ~ diff --git a/.config/systemd/backup.timer.desk b/.config/systemd/backup.timer.desk index 922d27b..41090cf 100644 --- a/.config/systemd/backup.timer.desk +++ b/.config/systemd/backup.timer.desk @@ -1,5 +1,5 @@ [Unit] -Description=Run backup daily +Description=Run backup weekly [Timer] OnCalendar=weekly diff --git a/.env b/.env index 0f1c4d6..93cc23f 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ export SCENARI_SSH_USER='qduchemin' export SCENARI_SSH_KEY_PATH="~/.ssh/id_gpg.pub" +export PATH="$PATH:~/go/bin"