Score:0

rsync creates an "intermediate" backup, how to delete it?

pk flag

I use rsync to backup my personal files in an external drive, i.e. a SD card or an USB thumb, being careful to update any files and to avoid copying very large files, configuration files, or folders containing large amounts of files such as the /miniconda3 folder contents.

sudo rsync -avuP --delete --exclude=".*" --exclude="miniconda*" --exclude="*.iso" /home/<user>/ /media/<user>/Backup/

Recently, I found that whenever I insert my external media, it is recognized as /media/<user>/backup1/, while a /media/<user>/backup/ remains in /. This is an "intermediate" backup of my files that consume as much disk space as both the original files and the files backed up in the external drive.

Tried using the disk analyzer, but no luck. It returns an error: "Trashing on system internal mounts is not supported."

How can I delete this "intermediate" backup?

Thank you.

Score:1
cn flag

This is not related to rsync.

You are seeing an alternative mount point for your external disk. The system has created this because the "normal" mount pount, /media/<user>/backup/, was not properly removed, either because you unplugged the drive slightly early, or for another reason. If the system attempts to automatically mount the drive, but sees that a mount point it wants to use already exists, an alternative is created.

  1. Unmount your drive correctly. The mountpoint ``/media//backup1/` should now disappear.

  2. Remove the "faulty" mountpount:

    sudo rmdir /media/<user>/backup
    
  3. Reconnect your removable drive.

jvalzert avatar
pk flag
Hello, and thank you! Tried this but it returns an error too: `rmdir: failed to delete /media/<user>backup/: Folder is not empty`
jvalzert avatar
pk flag
However, I did `sudo nemo` and once I had privileges, deleted all the contents of `/media/<user>/Backup/` through the file manager, before trying your method again. Now it worked. Thank you so much!
vanadium avatar
cn flag
`sudo nemo` is a good receipe to end up with an account wherre you cannot anymore log in.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.