I still kinda use the rsync command to backup my OS and my Office files. I don't work in IT, just use linux, if you have a different suggestion for me how to "back up", tell me plz
I wrote a shell with around 10 commands in it - they all do the rsync and work fine. Just these 2 lines and the bottom seem not to work.
Does anyone see why?
So here is the shell:
Code: Select all
rsync -ahv --delete --exclude-from=exclude.WIN.txt /mnt/win/ /mnt/hdd/rsync_WIN_powerhost_AKTUELL.uefi &&
rsync -ahv --delete /boot/efi /mnt/hdd/rsync_efi_powerhost_AKTUELL.uefi/ &&
rsync -ahv --delete /opt/* /mnt/main/rsync_NOMEDIA/opt/ &&
rsync -ahv --delete /mnt/share/MOZILLA* /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/share/Brave* /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/share/chromium* /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/lbry/secret_data /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/hdd/*.sh /mnt/lbry/pukkab/MAIN &&
rsync -ahv --delete /mnt/hdd/exclude* /mnt/lbry/pukkab/MAIN && date && df -h
Code: Select all
rsync -ahv --delete --exclude-from=exclude.WIN.txt /mnt/win/ /mnt/hdd/rsync_WIN_powerhost_AKTUELL.uefi &&
rsync -ahv --delete /boot/efi /mnt/hdd/rsync_efi_powerhost_AKTUELL.uefi/ &&
rsync -ahv --delete /opt/* /mnt/main/rsync_NOMEDIA/opt/ &&
Code: Select all
rsync -ahv --delete /mnt/xxx/MOZILLA* /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/xxx/Brave* /mnt/hdd/rsync_NOMEDIA/ &&
rsync -ahv --delete /mnt/xxx/chromium* /mnt/hdd/rsync_NOMEDIA/ &&
Code: Select all
rsync -ahv --delete /mnt/lbry/secret_data /mnt/hdd/rsync_NOMEDIA/ &&
Code: Select all
rsync -ahv --delete /mnt/hdd/*.sh /mnt/lbry/pukkab/MAIN &&
rsync -ahv --delete /mnt/hdd/exclude* /mnt/lbry/pukkab/MAIN && date && df -h
Why does it not work? Does rsync not understand the * ? Please..