Commit 219ce7cf authored by Martin's avatar Martin

compress backups

parent 314d52bf
......@@ -16,7 +16,6 @@
line: "{{ item.line }}"
loop:
- { regexp: '^MAKEFLAGS=', line: 'MAKEFLAGS="-j$(nproc)"' }
- { regexp: '^COMPRESSXZ=', line: 'COMPRESSXZ=(xz -c -z - --threads=0)' }
- name: Set max journal size to 200MB, prevents having up to 4GiB journal
get_url:
url: https://gitlab.com/C0rn3j/Arch/raw/master/configs/00-journal-size.conf
......
......@@ -2,7 +2,7 @@
Description=Backup Guard
[Service]
ExecStart=/bin/bash -c "rsync -avzz -e 'ssh -p 10222' [email protected]:/root/the-guard-bot/config.js :/root/the-guard-bot/data /home/c0rn3j/Nextcloud/Backups/guard/ && todayDate=$$(date +%%Y-%%m-%%d) && tar -cvf /home/c0rn3j/Nextcloud/Backups/guard/Guard-$${todayDate}.tar /home/c0rn3j/Nextcloud/Backups/guard/config.js /home/c0rn3j/Nextcloud/Backups/guard/data"
ExecStart=/bin/bash -c "rsync -avzz -e 'ssh -p 10222' [email protected]:/root/the-guard-bot/config.js :/root/the-guard-bot/data /home/c0rn3j/Nextcloud/Backups/guard/ && todayDate=$$(date +%%Y-%%m-%%d) && tar -acvf /home/c0rn3j/Nextcloud/Backups/guard/Guard-$${todayDate}.tar.zst /home/c0rn3j/Nextcloud/Backups/guard/config.js /home/c0rn3j/Nextcloud/Backups/guard/data"
ExecStopPost=/bin/bash -c 'if [ "$$EXIT_STATUS" != 0 ]; then /usr/local/bin/systemd-email [email protected] %n; fi'
[Install]
......
......@@ -2,7 +2,7 @@
Description=Backup Synthesia appdata
[Service]
ExecStart=/bin/bash -c "todayDate=$$(date +%%Y-%%m-%%d) && tar -cvf /home/c0rn3j/Nextcloud/Backups/Synthesia/Synthesia-$${todayDate}.tar '/home/c0rn3j/.wine/drive_c/users/c0rn3j/Application Data/Synthesia'"
ExecStart=/bin/bash -c "todayDate=$$(date +%%Y-%%m-%%d) && tar -acvf /home/c0rn3j/Nextcloud/Backups/Synthesia/Synthesia-$${todayDate}.tar.zst '/home/c0rn3j/.wine/drive_c/users/c0rn3j/Application Data/Synthesia'"
ExecStopPost=/bin/bash -c 'if [ "$$EXIT_STATUS" != 0 ]; then /usr/local/bin/systemd-email [email protected] %n; fi'
[Install]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment