I have tried to backup a drive using
rsync and it doesn't seem to work as intended. The plan is to backup the drive to a secondary drive and only replace the missing files. However, what it does is instead of replacing the backup it just makes a new directory within the virtual drive and backups up to that.
How can I make it backup properly by only backing up what it needs to replace? Like modified files and new files. Perhaps I should try a different backup program.
The command line I'm using is as so:
sudo rsync -aAXv --delete /media/veracrypt1/HD /media/veracryrypt2/HD
For now I've simply done a manual backup by copying the main virtual drive and pasting it in another external hard drive.
My system info: running Linux Debian, kernel release: 4.9.0-6-amd64