wlin003_GamingPC/home/config-rsync.nix aktualisiert

This commit is contained in:
Henrik Lutzmann 2025-02-06 17:56:23 +01:00
parent 27efcd545d
commit 8f5379b0f1
1 changed files with 79 additions and 48 deletions

View File

@ -1,48 +1,79 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.file = { home.file = {
".rsync-exlude" = { ".rsync-backup.sh" = {
text = '' executable = true;
- Downloads text = ''
- Games #!/bin/sh
- Share-Cloud #
- Share-Priv ################################################################################
- Share-SMB #
- Share-VM # Push Home Zulumann to Fileserver01/Backup/$HOSTNAME/
- Sync #
- VM-Image ################################################################################
- Code Cache # -a (Kurzversion für --archive): gleiche Bedeutung wie -rlptgoD
- cache* # -r (Kurzversion für --recursive): Unterverzeichnisse kopieren
- Cache* # -l (Kurzversion für --links): symbolische Links kopierenrsync
- Cache_* # -p (Kurzversion für --perms): Rechte der Quelldatei beibehalten
- *_cache # -t (Kurzversion für --times): Zeiten der Quelldatei beibehalten
- *Cache # -g (Kurzversion für --group): Gruppenrechte der Quelldatei beibehalten
- DawnGraphiteCache # -o (Kurzversion für --owner): Besitzrechte der Quelldatei beibehalten (nur als root User möglich)
- log* # -D (Kurzversion für --devices --specials): Gerätedateien der Quelldatei beibehalten (nur als root User möglich)
- logs # -v (Kurzversion für --verbose): zeigt während der Ausführung an welche Dateien synchronisiert werden
- tmp # -z
- Trash # --delete: entfernt Dateien im Zielverzeichnis die mittelerweile im Quellverzeichnis nicht mehr vorhanden sind
+ .config # rsync --dry-run
- .config/syncthing ################################################################################
- .config/unity3d # rsync -rdt rsync://192.168.10.52/
- .config/ownCloud #
+ .local rsync -a -v --exclude-from=/home/$USER/.rsync-exlude --delete --progress --partial /home/$USER/ rsync://192.168.10.52:873/Backup/$HOSTNAME/ -b --backup-dir=01rsync-trash/ 2>&1 | tee /home/$USER/.rsync-backup.log
- .local/state '';
- .local/share/containers };
- .local/share/flatpak };
- .local/share/keyrings
- .local/share/nomic.ai home.file = {
- .local/share/Steam ".rsync-exlude" = {
+ .jd2 text = ''
+ .conkyrc - Downloads
- .* - Games
- *.LOG - Share-Cloud
- LOG - Share-Priv
- *.old - Share-SMB
''; - Share-VM
}; - Sync
}; - VM-Image
- Code Cache
} - cache*
- Cache*
- Cache_*
- *_cache
- *Cache
- DawnGraphiteCache
- log*
- logs
- tmp
- Trash
+ .config
- .config/syncthing
- .config/unity3d
- .config/ownCloud
+ .local
- .local/state
- .local/share/containers
- .local/share/flatpak
- .local/share/keyrings
- .local/share/nomic.ai
- .local/share/Steam
+ .jd2
+ .conkyrc
- .*
- *.LOG
- LOG
- *.old
'';
};
};
}