Why is one of my backup drives using 2.3 TB?
When the source is only using 1.6 TB?
df -h /media/media_backup/ Filesystem Size Used Avail Use% Mounted on /dev/sdf1 2.7T 2.3T 339G 88% /media/media_backup [90yearoldpornstar@Uranus ~]$ df -h /media/media/ Filesystem Size Used Avail Use% Mounted on /dev/sdg1 2.7T 1.6T 1.1T 61% /media/media
The command to back it up:
rsync -av --delete /media/media/ /media/media_backup/
Does the slash at the end of media_backup mess it up? Perhaps I need to format the drive, and then rerun the command. Or rm -fr it all. I already deleted /media/media_backup/media, when I didn’t have a slash at the end of the source. I thought “–delete” deleted stuff on the destination.
I’m too lazy to look in each folder. Much easier to rm -fr it all, and start over. I removed the slash at the end of media_backup, even though I don’t think it matters.
Now to check my other backup drive, and see if the size matches the drive it’s backing up. If not, there’s something wrong with rsync.
df -h /media/backup Filesystem Size Used Avail Use% Mounted on /dev/sdh1 2.7T 989G 1.6T 38% /media/backup [90yearoldpornstar@Uranus ~]# df -h /media/backupofbackup/ Filesystem Size Used Avail Use% Mounted on /dev/sdc1 3.6T 989G 2.5T 29% /media/backupofbackup
That’s how it’s supposed to be. Yes, the backup of the backup drive is bigger. Perhaps I should back something else up to it. Or not.
Maybe tomorrow it’ll fix itself. If not, I guess I have to rm -fr everything on it. Or format it.
I searched for the problem, I might need “-H” for rsync, to preserve hard links. Guess it duplicates stuff if you don’t use that. So I might be right, I thought the timeshift folder was the problem, it probably is. Now if you pass that option after it already duplicated everything, will it replace with hard links? If not, I probably need to rm -fr everything.
I also added that to the other commands for backing up. I guess “-a” doesn’t preserve hard links. I just checked the help, it says no “-H” for archive mode. If you use “-avH” will it use the hard link preservation option? I could just manually run it. But I’m lazy. Rather wait and let it run by cron.