Hi,
I decided to backup my os SD card with OMV in the most simple way with rsync to HDD and then to pack it. For that I am using 2 cron jobs:
Code
rsync -aAXv / --exclude={"/dev/*","/export/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/srv/*","/media/*","/lost+found"} /srv/dev-disk-by-id-XXX/backup/raw
and
Code
tar -cvjf /srv/dev-disk-by-id-XXX/backup/backup_$(date +%Y%m%d).tar.bz2 /srv/dev-disk-by-id-XXX/backup/raw
The 2nd line of code works fine. I have tested rsync line 3 times with different results:
1st time - Copied what was supposed to copy (excluded not needed folders).
2nd time - Copied what was supposed to copy + created folders from "excluded" but did not copy their contents.
3rd time - Copied everything, including folders from "excluded".
I have been always running the same and only command. Why do I have so different (and incorrect) results? 3rd time resulted in 20 times looped backup before I spotted something is wrong.