Rsync ssh dest folder bigger than source folder

li flag

I want to do a backup of all my files from my linux computer to a ssh server. I used rsync with :

rsync -rl source dest

But now the dest folder (which was empty before) is larger than the source. why? How can i be sure that everything is ok?

sudodus avatar
jp flag
How did you measure the size of the source and target? Are you copying to the same kind of file system? Are there hard links in the source directory (you need `-H` to keep them as hard links)? Did you run `rsync` only once or repeat it during a few days?
Quentin Chartreux avatar
li flag
acctually it's not my data, it's the computer from a former employee and i just make a backup before delete the data. Indeed i don't thought about that but there are some hardlinks
I sit in a Tesla and translated this thread with Ai:


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.