Compare commits

...

2 Commits

Author SHA1 Message Date
Quentin Duchemin 62f7d8b1e6
Fix backup source path 2023-03-30 18:03:42 +02:00
Quentin Duchemin 4c88528ee8
Add backup with Restic 2023-03-29 22:38:48 +02:00
5 changed files with 6 additions and 8 deletions

View File

@ -37,6 +37,7 @@ python-pyperclip
python-requests python-requests
qbittorrent qbittorrent
redshift redshift
restic
rofi rofi
rsync rsync
signal-desktop signal-desktop

View File

@ -4,7 +4,7 @@ JACK settings, as persisted by D-Bus object.
You probably don't want to edit this because You probably don't want to edit this because
it will be overwritten next time jackdbus saves. it will be overwritten next time jackdbus saves.
--> -->
<!-- Sun Feb 19 01:45:20 2023 --> <!-- Thu Mar 30 10:33:45 2023 -->
<jack> <jack>
<engine> <engine>
<option name="driver">alsa</option> <option name="driver">alsa</option>

View File

@ -1,11 +1,7 @@
[Unit] [Unit]
Description=Back up chosty's documents Description=Back up chosto's documents
OnFailure=notify-backup-failure.service OnFailure=notify-backup-failure.service
[Service] [Service]
Type=oneshot 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) ExecStart=RESTIC_PASSWORD=$(cat /root/restic) restic -r /backup/restic --verbose backup --exclude '/home/.*' /home
# 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/

View File

@ -2,7 +2,7 @@
Description=Run backup daily Description=Run backup daily
[Timer] [Timer]
OnCalendar=weekly OnCalendar=daily
Persistent=true Persistent=true
[Install] [Install]

1
.env
View File

@ -1,2 +1,3 @@
export SCENARI_SSH_USER='qduchemin' export SCENARI_SSH_USER='qduchemin'
export SCENARI_SSH_KEY_PATH="~/.ssh/id_gpg.pub" export SCENARI_SSH_KEY_PATH="~/.ssh/id_gpg.pub"
export PATH="$PATH:~/go/bin"